undefined reference to '___getreent'

Daniel Kolbo kolb0057 at umn.edu
Sat Jan 8 22:22:54 CET 2011


Hello,

Please go easy on me...it has been some time.

I am using a windows XP home computer (not preferred, but it is what i
have...).

I compiled GMP 4.3.2 under Cygwin using the ./configure --enable-cxx,
make, make check, and make install commands.  Everything seemed to go well.

Then, in code::blocks (IDE) I tried a simple program and I received a
handful of
c:\cygwin\usr\local\lib\libgmp.a(memory.o):memory.c|| undefined
reference to `___getreent'|
c:\cygwin\usr\local\lib\libgmp.a(memory.o):memory.c|| undefined
reference to `___getreent'|
c:\cygwin\usr\local\lib\libgmp.a(assert.o):assert.c|| undefined
reference to `___getreent'|
c:\cygwin\usr\local\lib\libgmp.a(assert.o):assert.c|| undefined
reference to `___getreent'|
c:\cygwin\usr\local\lib\libgmp.a(assert.o):assert.c|| undefined
reference to `___getreent'|
||=== Build finished: 5 errors, 0 warnings ===|

I received the above errors when I used the code::blocks mingw32 and the
cygwin compilers.

#include "gmpxx.h"
using namespace std;

int main()
{
	mpz_class a = 3;
}

Please let me know what else you need.

Thanks in advance.
`


More information about the gmp-discuss mailing list