Richard Cohen richard.cohen at
Wed Aug 20 08:21:30 CDT 2003

puoti at wrote:
> I've just updated via cvs, and I get this
> [ivan at my Wine]$ winegcc -mwindows 01-biditest.c
> /tmp/wappZjLo5B.spec.o(.text+0x1010a): In function `__wine_exe_main':
> : undefined reference to `WinMain'
> collect2: ld returned 1 exit status
> Error: gcc failed.
> Error: winewrap failed.
> [ivan at my Wine]$
> winewrap returns a seg fault.
You need to explicitly link with gdi (use -lgdi32)
or change main() to WinMain() and use -mwindows


More information about the wine-devel mailing list