From: Axel DOT Riese AT risc DOT uni-linz DOT ac DOT at (Axel Riese) Subject: Re: problems building GUI application 5 Nov 1997 01:44:36 -0800 Message-ID: <199711050929.AA23796.cygnus.gnu-win32@melmac.risc.uni-linz.ac.at> References: <345f70ce DOT 26441902 AT smtp DOT netzone DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit To: gnu-win32 AT cygnus DOT com (GNU-Win32) Cc: ariese AT risc DOT uni-linz DOT ac DOT at (Axel Riese) Hi all ! 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. BW, 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/research/combinat/risc/ =============================================================================== - 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".