undefined reference to '___getreent' - SOLVED
Daniel Kolbo
kolb0057 at umn.edu
Sun Jan 9 19:25:36 CET 2011
On 1/8/2011 4:22 PM, Daniel Kolbo wrote:
> 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.
> `
> _______________________________________________
> gmp-discuss mailing list
> gmp-discuss at gmplib.org
> https://gmplib.org/mailman/listinfo/gmp-discuss
>
I needed to link my code::blocks project to the cygwin1.dll. Once
linked this resolved the problem.
Thanks.
`
More information about the gmp-discuss
mailing list