unresolved external symbols

Andreas Fabri Andreas.Fabri at sophia.inria.fr
Sat Oct 30 17:39:30 CEST 2004


Hello,

I followed Bryan Gladman instructions, to build gmp.lib/gmp.dll and mpfr.lib
with VC 7.1.

When I build an application using GMP I get unresolved external symbols.

Did any other user ran into the same problem, and can give me a hint.

thank's in advance,

andreas




make Cartesian.exe
make[1]: Entering directory `/cygdrive/c/cgal/CGAL-3.1-I-174/test/Kernel'
"/cygdrive/c/Program Files/Microsoft Visual Studio .NET 2003/Vc7/Bin/CL.EXE" -I../../include    -TP 
-GR -EHsc -Zm900 -nologo -DCGAL_USE_GMP -DCGAL_USE_CORE -DCGAL_USE_QT -DQT_THREAD_SUPPORT 
'-Ic:\cgal\CGAL-3.1-I-174\include\CGAL\config\i686_CYGWINNT-5.1-1.5.11_CL.EXE-1310' 
'-Ic:\cgal\CGAL-3.1-I-174\include'	'-Ic:\gladman\gmp-4.1.3\gmp.build.vc7'	'-IC:\Qt\3.2.2\include' 
-Iinclude  -c Cartesian.C
Cartesian.C

"/cygdrive/c/Program Files/Microsoft Visual Studio .NET 2003/Vc7/Bin/CL.EXE"   -FeCartesian 
Cartesian.obj   -link  '-LIBPATH:c:\cgal\CGAL-3.1-I-174\lib\i686_CYGWINNT-5.1-1.5.11_CL.EXE-1310' 
'-LIBPATH:C:\Qt\3.2.2\lib' '-LIBPATH:c:\gladman\gmp-4.1.3\gmp.build.vc7\dll' -nologo  CGAL.lib 
Core.lib  mpfr.lib  gmp.lib    psapi.lib
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library

mpfr.lib(clear.obj) : error LNK2001: unresolved external symbol ___gmp_free_func

mpfr.lib(get_d.obj) : error LNK2001: unresolved external symbol ___gmp_free_func

mpfr.lib(get_d.obj) : error LNK2001: unresolved external symbol ___gmp_allocate_func

mpfr.lib(init2.obj) : error LNK2001: unresolved external symbol ___gmp_allocate_func

mpfr.lib(set_z.obj) : error LNK2001: unresolved external symbol ___gmpn_clz_tab

mpfr.lib(cmp_si.obj) : error LNK2001: unresolved external symbol ___gmpn_clz_tab

mpfr.lib(round_prec.obj) : error LNK2001: unresolved external symbol ___gmp_reallocate_func

Cartesian.exe : fatal error LNK1120: 4 unresolved externals



More information about the gmp-discuss mailing list