building DLL with MinGW fails

Radu Ursu rursu at geometryfactory.com
Fri Apr 30 11:09:38 CEST 2004


Hi,
I am using MinGW to build the DLL version of GMP that I want to use with 
Visual C++ 7.1.
Although I had some compilation problems that I have eventualy succeded 
to handle, I get an error at the end of the linking process:

.o printf/.libs/printffuns.o printf/.libs/snprintf.o 
printf/.libs/snprntffuns.o
printf/.libs/sprintf.o printf/.libs/sprintffuns.o 
printf/.libs/vasprintf.o print
f/.libs/vfprintf.o printf/.libs/vprintf.o printf/.libs/vsnprintf.o 
printf/.libs/
vsprintf.o scanf/.libs/doscan.o scanf/.libs/fscanf.o 
scanf/.libs/fscanffuns.o sc
anf/.libs/scanf.o scanf/.libs/sscanf.o scanf/.libs/sscanffuns.o 
scanf/.libs/vfsc
anf.o scanf/.libs/vscanf.o scanf/.libs/vsscanf.o
if test "x`head -1 .libs/libgmp.exp`" = xEXPORTS; then cp 
.libs/libgmp.exp .libs
/cyggmp-3.dll-def; else echo EXPORTS > .libs/cyggmp-3.dll-def; 
_lt_hint=1; cat .
libs/libgmp.exp | while read symbol; do set dummy $symbol; case $# in 2) 
echo "
$2 @ $_lt_hint ; " >> .libs/cyggmp-3.dll-def;; *) echo " $2 @ $_lt_hint 
$3 ; " >
 > .libs/cyggmp-3.dll-def;; esac; _lt_hint=`expr 1 + $_lt_hint`; done; fi
  /cygdrive/e/applis/MinGW/bin/mingw32-gcc.exe 
-Wl,--base-file,.libs/cyggmp-3.dll
-base -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry at 12 -o 
.libs/cyggmp-3.dll
  .libs/libgmp.la-1.o
e:\applis\MinGW\bin\..\lib\gcc-lib\mingw32\3.2.3\..\..\..\..\mingw32\bin\ld.exe:
  warning: cannot find entry symbol __cygwin_dll_entry at 12; defaulting to 
10001000

.libs/libgmp.la-1.o(.text+0x6217): In function `_gmpn_mul_fft_full':
d:/work/gmp-4.1.3/mpn/mul_fft.c:716: undefined reference to `__gmpn_mul_1c'
.libs/libgmp.la-1.o(.text+0x63af):d:/work/gmp-4.1.3/mpn/mul_fft.c:716: 
undefined
  reference to `__gmpn_mul_1c'
.libs/libgmp.la-1.o(.text+0xf146):d:/work/gmp-4.1.3/mpn/mul_fft.c:716: 
undefined
  reference to `__gmpn_preinv_mod_1'
.libs/libgmp.la-1.o(.text+0x1a094):d:/work/gmp-4.1.3/mpn/mul_fft.c:716: 
undefine
d reference to `__gmpn_preinv_divrem_1'
.libs/libgmp.la-1.o(.text+0x1a181):d:/work/gmp-4.1.3/mpn/mul_fft.c:716: 
undefine
d reference to `__gmpn_preinv_divrem_1'
.libs/libgmp.la-1.o(.text+0x1a86c):d:/work/gmp-4.1.3/mpn/mul_fft.c:716: 
undefine
d reference to `__gmpn_mul_1c'
.libs/libgmp.la-1.o(.text+0x1a8dd):d:/work/gmp-4.1.3/mpn/mul_fft.c:716: 
undefine
d reference to `__gmpn_mul_1c'
.libs/libgmp.la-1.o(.text+0x1af7f):d:/work/gmp-4.1.3/mpn/mul_fft.c:716: 
undefine
d reference to `__gmpn_preinv_mod_1'
make[2]: *** [libgmp.la] Error 1
make[2]: Leaving directory `/cygdrive/d/work/gmp-4.1.3'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/d/work/gmp-4.1.3'
make: *** [all] Error 2




More information about the gmp-discuss mailing list