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