wine/ programs/Makefile.in ./configure.ac ./co ...
Alexandre Julliard
julliard at winehq.org
Thu Dec 4 15:34:42 CST 2003
Ferenc Wagner <wferi at afavant.elte.hu> writes:
> But we've got an error in the cross-configured tree:
>
> tba:/usr/local/src/wine/pe/dlls/msvcrt/tests/ $ make
> i586-mingw32msvc-gcc cpp.o file.o heap.o scanf.o testlist.o -o msvcrt_test.exe -L../../../dlls -lmsvcrt -L../../../libs/wine -lwine -L../../../libs/port -lwine_port -lm
> ../../../dlls/libmsvcrt.a(ds00464.o)(.text+0x0): multiple definition of `atexit'
> /usr/lib/gcc-lib/i586-mingw32msvc/2.95.3-7/../../../../i586-mingw32msvc/lib/crt2.o:/home/ron/devel/debian/mingw32-runtime/mingw32-runtime-3.2/build_dir/src/mingw-runtime-3.2/crt1.c:266: first defined here
> ../../../dlls/libmsvcrt.a(ds00332.o)(.text+0x0): multiple definition of `_onexit'
> /usr/lib/gcc-lib/i586-mingw32msvc/2.95.3-7/../../../../i586-mingw32msvc/lib/crt2.o:/home/ron/devel/debian/mingw32-runtime/mingw32-runtime-3.2/build_dir/src/mingw-runtime-3.2/crt1.c:274: first defined here
> make: *** [msvcrt_test.exe] Error 1
That's a mingw bug, their handling of atexit is not compatible with
the way Windows does it. You can work around it by not using the Wine
msvcrt import lib.
--
Alexandre Julliard
julliard at winehq.com
More information about the wine-devel
mailing list