Mail Archives: cygwin/1998/02/09/01:30:03
> 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 DOT Riese AT risc DOT uni-linz DOT ac DOT 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 AT cygnus DOT com" with one line of text: "help".
- Raw text -