[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
having a lot of mingw build problems with atexit - what does it mean?
From: |
Ed Hartnett |
Subject: |
having a lot of mingw build problems with atexit - what does it mean? |
Date: |
Mon, 04 Dec 2006 16:43:25 -0700 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux) |
Howdy all!
I am having a lot of trouble building my library with libtool under
mingw. I keep getting these errors relating to atexit. Can anyone
enlighten me as to what that is?
For example:
make check
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -o libnetcdf.la
-rpath /usr/local/lib -Wl,--output-def,.libs/libnetcdf.def
-version-info 0:0:0 -no-undefined attr.lo ncx.lo putget.lo dim.lo
error.lo libvers.lo nc.lo string.lo v1hpg.lo var.lo posixio.lo
libnetcdf2.la
libtool: link: rm -fr .libs/libnetcdf.a .libs/libnetcdf.def
.libs/libnetcdf.la .libs/libnetcdf.lai .libs/libnetcdf.lib
libtool: link: gcc -shared .libs/attr.o .libs/ncx.o .libs/putget.o
.libs/dim.o .libs/error.o .libs/libvers.o .libs/nc.o .libs/string.o
.libs/v1hpg.o .libs/var.o .libs/posixio.o -Wl,--whole-archive
./.libs/libnetcdf2.a -Wl,--no-whole-archive -Wl,--output-def
-Wl,.libs/libnetcdf.def -o .libs/libnetcdf-0.dll
-Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker
.libs/libnetcdf-0.dll
Creating library file: .libs/libnetcdf-0.dll
libtool: link: (cd ".libs" && rm -f "libnetcdf.lib" && ln -s
"libnetcdf-0.dll" "libnetcdf.lib")
libtool: link: (cd .libs/libnetcdf.lax/libnetcdf2.a && ar x
/c/cygwin/home/ed/netcdf-3/libsrc/./.libs/libnetcdf2.a)
libtool: link: ar cru .libs/libnetcdf.a attr.o ncx.o putget.o dim.o
error.o libvers.o nc.o string.o v1hpg.o var.o posixio.o
.libs/libnetcdf.lax/libnetcdf2.a/v2i.o
libtool: link: ranlib .libs/libnetcdf.a
libtool: link: rm -fr .libs/libnetcdf.lax
libtool: link: creating libnetcdf.la
libtool: link: ( cd ".libs" && rm -f "libnetcdf.la" && ln -s
"../libnetcdf.la" "libnetcdf.la" )
make t_nc.exe
make[1]: Entering directory `/c/cygwin/home/ed/netcdf-3/libsrc'
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -o t_nc.exe
t_nc-t_nc.o libnetcdf.la
libtool: link: gcc -g -O2 -o .libs/t_nc.exe t_nc-t_nc.o
./.libs/libnetcdf.lib -L/usr/local/lib
./.libs/libnetcdf.lib(.text+0x160):crtstuff.c: multiple definition of
`atexit'
/mingw/lib/crt2.o(.text+0x2b0):crt1.c: first defined here
./.libs/libnetcdf.lib(.text+0x190):crtstuff.c: multiple definition of
`_onexit'
/mingw/lib/crt2.o(.text+0x2c0):crt1.c: first defined here
Thanks!
Ed
--
Ed Hartnett -- address@hidden
- having a lot of mingw build problems with atexit - what does it mean?,
Ed Hartnett <=