Subject: RE: WinMainCRTStartup again
From: [email-masked] ("Ulrich Kreuzeder")

24 Jan 1997 16:35:00 -0800
Approved: [email-masked]
Distribution: cygnus
Message-ID: <[email-masked]>
Reply-To: [email-masked]
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7BIT
Comments: Authenticated sender is <[email-masked]>
Original-To: [email-masked], [email-masked],
        [email-masked]
X-Mailer: Pegasus Mail for Windows (v2.23)
Original-Sender: [email-masked]

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: [email-masked]
**************************************************
-
For help on using this list, send a message to
"[email-masked]" with one line of text: "help".