puoti@inwind.it wrote:
I've just updated via cvs, and I get this [ivan@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@my Wine]$
winewrap returns a seg fault.
You need to explicitly link with gdi (use -lgdi32) or change main() to WinMain() and use -mwindows
-- Richard.