Mail Archives: cygwin/1997/01/24/16:35:00
Hi,
> : gcc -o hellowin.exe hellowin.o -luser32 -lgdi32 -Wl,--subsystem,windows
>
> : /cygnus/H-i386-cygwin32/bin/ld.exe: warning: cannot find entry symbol
> : _WinMainCRTStartup; defaulting to 00401000
>
> Just try as you would under unix:
> gcc -o hellowin.exe hellowin.o
> Telling the beast that it really is Windows seems to make it angry 8-)
Both ways of compilation produce a working result, but:
* the second version (without subsystem windows) does not return
instantly to the calling process, but waits for termination.
Personally I can live with that, but "normal" Windows programs
return immediately after startup.
* the first version behaves correct, but the linker error message
is more disturbing than the misbehaviour before.
So, the original posted question still is up: "Where and what is
"_WinMainCRTStartup"?
Greetings,
Ulrich.
**************************************************
Ulrich Kreuzeder
Research Institute for Microprocessor Applications
Johannes Kepler University
Altenbergerstrasse 69
A-4040 Linz
Austria
Phone: ++43 (0) 732 / 2468 - 437
EMail: kre AT fim DOT uni-linz DOT ac DOT at
**************************************************
-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -