delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/02/09/01:30:03

From: Axel DOT Riese AT risc DOT uni-linz DOT ac DOT at (Axel Riese)
Subject: Re: Win32 Apps?
9 Feb 1998 01:30:03 -0800 :
Message-ID: <199802090907.AA08877.cygnus.gnu-win32@jade.risc.uni-linz.ac.at>
References: <3 DOT 0 DOT 32 DOT 19980204203105 DOT 0068ff98 AT wilmington DOT net>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com (GNU-Win32)

> 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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019