From: <ch...@it...> - 2003-05-27 19:06:20
|
I was trying to see how far I could get when compiling WINE with mingw. [root@ch tests]# mingw32-gcc registry.o testlist.o -o advapi32_test.exe -L../../../dlls -ladvapi32 -lkernel32 -lntdll -L../../../libs/wine -lwine -L../../../libs/port -lwine_port -lm ../../../dlls/libmsvcrt.a(ds00444.o)(.text+0x0): multiple definition of `atexit' /sandbox/build/installed/automingw.34/bin/../lib/gcc-lib/mingw32/3.4/../ ../../../mingw32/lib/crt2.o(.text+0x40):crt1.c: first defined here ../../../dlls/libmsvcrt.a(ds00319.o)(.text+0x0): multiple definition of `_onexit' /sandbox/build/installed/automingw.34/bin/../lib/gcc-lib/mingw32/3.4/../ ../../../mingw32/lib/crt2.o(.text+0x60):crt1.c: first defined here Obviously the WINE libmsvcrt.a is picked up first. There is probably a reason for atexit and _onexit to be in crt2.o. Why are they not only in the mingw msvcrt import library ? What options do I have for getting around the problem ? Casper |