I've just updated via cvs, and I get this [ivan(a)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(a)my Wine]$ winewrap returns a seg fault.
On August 20, 2003 07:33 am, puoti\@inwind\.it wrote:
I've just updated via cvs, and I get this [ivan(a)my Wine]$ winegcc -mwindows 01-biditest.c
/tmp/wappZjLo5B.spec.o(.text+0x1010a): In function `__wine_exe_main': : undefined reference to `WinMain'
OK, do you mind sending me a copy of 01-biditest.c? Is this supposed to generate an executable? -- Dimi.
puoti(a)inwind.it wrote:
I've just updated via cvs, and I get this [ivan(a)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(a)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.
participants (3)
-
Dimitrie O. Paun -
puoti@inwind.it -
Richard Cohen