From: kre AT fimp01 DOT fim DOT uni-linz DOT ac DOT at ("Ulrich Kreuzeder") Subject: RE: WinMainCRTStartup again 24 Jan 1997 16:35:00 -0800 Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <9701241218.AA22922.cygnus.gnu-win32@FIMP01.fim.uni-linz.ac.at> Reply-To: kre AT fimp01 DOT fim DOT uni-linz DOT ac DOT at Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Comments: Authenticated sender is Original-To: dahms AT ifk20 DOT mach DOT uni-karlsruhe DOT de, gnu-win32 AT cygnus DOT com, dahms AT ifk20 DOT mach DOT uni-karlsruhe DOT de X-Mailer: Pegasus Mail for Windows (v2.23) Original-Sender: owner-gnu-win32 AT cygnus DOT com 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".