Breakthrough! Can now crosscompile unit tests!
steven_ed4153 at yahoo.com
Fri May 10 08:51:40 CDT 2002
--- Jakob Eriksson <jakob at vmlinux.org> wrote:
> On Thu, May 09, 2002 at 08:01:51PM -0400, Steven
> Edwards wrote:
> > > jakov at black:/tmp>
> > > jakov at black:/tmp> i586-mingw32msvc-gcc file.c
> > >
> > > ngw32msvc/lib/libmingw32.a(main.o)(.text+0x8f):
> > > reference to `WinMain at 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!
More information about the wine-devel