--- Jakob Eriksson jakob@vmlinux.org wrote:
On Thu, May 09, 2002 at 08:01:51PM -0400, Steven Edwards wrote:
jakov@black:/tmp> jakov@black:/tmp> i586-mingw32msvc-gcc file.c
/usr/lib/gcc-lib/i586-mingw32msvc/2.95.3-7/../../../../i586-mi
ngw32msvc/lib/libmingw32.a(main.o)(.text+0x8f):
undefined
reference to `WinMain@16'
There is no main statement in file.c
Ah, but of course! :-) I'm happy now!
Now it works, at least for dlls/kernel/tests/file.c
If you compile with:
i586-mingw32msvc-gcc -o FILE.EXE -DREAL_EXE file.c
If you have to do a #ifdef for the unit tests do the generic _WINDOWS as this covers both the mingw and the MSV_VC port. I dont know if this will give you trouble when you go to cross compile wine/tools that have #ifdef _WINDOWS but I use it on my mingw port.
__________________________________________________ Do You Yahoo!? Yahoo! Shopping - Mother's Day is May 12th! http://shopping.yahoo.com