Build error under Windows

Nick Martin njmartin88 at gmail.com
Sun Nov 8 08:40:14 EST 2009


Hi everyone,

I'm trying to build GNUCash from svn under Windows XP using the
install.sh script, but I get the following error:

gcc -shared .libs/libgmp.la-1.o   -m32 -mtune=pentium4 -march=pentium4 -mno-cygw
in -Wl,--export-all-symbols -Wl,--output-def -Wl,.libs/libgmp-3.dll.def -o .libs
/libgmp-3.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/
libgmp.dll.a
Creating library file: .libs/libgmp.dll.a
.libs/libgmp.la-1.o:out_str.c:(.text+0x2c1f): undefined reference to `__mingw_vf
printf'
.libs/libgmp.la-1.o:repl-vsnprintf.c:(.text+0x319c1): undefined reference to `__
mingw_vsprintf'
.libs/libgmp.la-1.o:repl-vsnprintf.c:(.text+0x31bc6): undefined reference to `__
mingw_vsprintf'
collect2: ld returned 1 exit status
make[2]: *** [libgmp.la] Error 1
make[2]: Leaving directory `/c/soft/tmp/gmp-4.3.1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/c/soft/tmp/gmp-4.3.1'
make: *** [all] Error 2

This is what I have in my custom.sh:

# Added the first line after getting the error. It didn't help.
LIBRARY_PATH=/c/MinGW/lib
DOWNLOAD_DIR=/c/downloads
MSYS_DIR=/c/msys/1.0
QTDIR=/c/Qt/4.5.3

Do you think I'm missing a library file? I'm not familliar with how
MinGW works, so I'm not too sure what's going on here. Any help anyone
can offer would be great.

Thanks,
Nick Martin


More information about the gnucash-devel mailing list