unresolved external symbols

Mike Loehr michael635 at adelphia.net
Sat Oct 30 19:09:29 CEST 2004


Andreas;

I'm not sure how much help I can be, but the gmp_free_func is defined to
gmp_default_free, which is in turn exported from within gmp-impl.

1) You can use Steve Miller's Dependency Walker to look at the exported
symbols from the DLL to see if it is infact exported.

2) Check to see that the defines are set properly for your build (It doesn't
look that you have defined them, but then again I'm not using .net).
You'll need to set -D__GMP_LIBGMP_DLL -D__MPFR_LIBGMP_DLL to get the exports
from the gmp, gmp-impl, mpfr headers properly.

HTH

Mike



-----Original Message-----
From: gmp-discuss-bounces at swox.com
[mailto:gmp-discuss-bounces at swox.com]On Behalf Of Andreas Fabri
Sent: Saturday, October 30, 2004 11:40 AM
To: gmp-discuss at swox.com
Subject: unresolved external symbols



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_T
HREAD_SUPPORT
'-Ic:\cgal\CGAL-3.1-I-174\include\CGAL\config\i686_CYGWINNT-5.1-1.5.11_CL.EX
E-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
03/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

_______________________________________________
gmp-discuss mailing list
gmp-discuss at swox.com
https://gmplib.org/mailman/listinfo/gmp-discuss



More information about the gmp-discuss mailing list