This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Petzold Example
- To: "GBradfor" <GBradfor at fhssmtp dot redstone dot army dot mil>, <gnu-win32 at cygnus dot com>
- Subject: Re: Petzold Example
- From: "Scott Warner" <swarnerx3 at acadia dot net>
- Date: Wed, 19 Nov 1997 04:17:02 -0500
Posted earlier (I think)
Concerning the discussion on the WinMainCRTStartup-warning:
> The Warning is issued because there is no WinMainCRTStartup in the
cygwin32
> library, however crt0.o which is the first thing that is linked in by
specs
> has the proper entry point (mainCRTStartup), which always gets put at
> 0x401000, unless you have modified the specs file.
I get the same warning with gcc, but all the programs (seem to) work.
> g++ -o test.exe test.cpp -luser32 (works fine no warnings)
> g++ -o test.exe test.cpp -luser32 -Wl,--subsystem,windows (works but
gives
> the warning)
My solution is:
Replace the -Wl option by
-Wl,--subsystem,windows,-e,mainCRTStartup
and you don't see the warning anymore.
Offhand, I don't know why you're getting the DLL message.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".