delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/04/07/01:45:52

From: hgfernan AT usp DOT br (Hilton Fernandes)
Subject: Re: Console-free EXE with Mingw32
7 Apr 1998 01:45:52 -0700 :
Message-ID: <9804011205.AA17760.cygnus.gnu-win32@spider.uspnet.usp.br>
References: <9803260912 DOT AA10990 AT fe13603 DOT fe DOT bosch DOT de>
Mime-Version: 1.0
To: woschwot AT fe13603 DOT fe DOT bosch DOT de (Wolfgang Schwotzer), gnu-win32 AT cygnus DOT com
Cc: Hilton Fernandes <hgfernan AT usp DOT br>

On 26 Mar 98 at 10:12,  Wolfgang Schwotzer <woschwot AT fe13603 DOT fe DOT bosch DOT de> 
wrote:

> How to build a ...

Hello Wolfgang.

To create a console executable you use, say:
	gcc -o some_exec some_obj_1.o some_obj_2.o

To create a console-free, GUI executable, you append 
	-W1,--subsystem,windows,-e,_mainCRTStartup

to the end of the previous command line.
Sometimes you'll need Win32 API functions available only in GDI and USER 
Windows modules.  In that case, you should use 
 -luser32 -lgdi32 -W1,--subsystem,windows,-e,_mainCRTStartup

That is, before appending the GUI suffix, you prefix it with the libraries.

OBS.: based on a previous message by Axel Riese 
<Axel DOT Riese AT risc DOT uni-linz DOT ac DOT at>, to gnu-win32, received in 8/Feb/1998.


HTH
++Hilton
-------------------
Hilton Fernandes
email: hgfernan AT usp DOT br
www:   http://www.lsi.usp.br/~hilton.html (inactive)
M. Sc. Student of Parallel Distributed Applications
at Escola Politecnica (Polytechnic School)
University of S. Paulo - Brazil
-
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