This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Win32 Apps?


> Does anyone out there have any idea what's causing this? 
> 
> //D/CygWin/b18/H-i386-cygwin32/i386-cygwin32/bin/ld.exe: warning: cannot
> find entry symbol _WinMainCRTStartup; defaulting to 00401000
> 
> I took a hello world program from a VC++ I've got and compiled it with GCC
> using the options -luser32 -lgdi32 -Wl,--subsystem,windows  to remove the
> dos box, and I got this warning. The program executes fine, but I'm trying
> to ciphen out all of the warnings and such from some of my code. I've seen
> mentions to removing the dos box, and compiling win32 apps under GCC, but I
> never saw mention as to what this means. Can anyone help me? (Hello.cpp
> file is at the end)
 
Yes, there is a workaround for this. Just replace the -Wl option by

    -Wl,--subsystem,windows,-e,_mainCRTStartup 

to get rid of this warning.

- Axel


===========================================================================
Axel Riese
Research Institute for Symbolic Computation
J. Kepler University Linz
A-4040 Linz                          e-Mail: Axel.Riese@risc.uni-linz.ac.at
Austria             URL: http://www.risc.uni-linz.ac.at/people/ariese/home/
===========================================================================
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]