www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/10/29/08:00:49

From: jeffdbREMOVETHIS AT netzone DOT com (Mikey)
Subject: Re: Command line options
29 Oct 1997 08:00:49 -0800 :
Message-ID: <3456d1b5.25076787.cygnus.gnu-win32@smtp.netzone.com>
References: <0008847F DOT 3272 AT fhssmtp DOT redstone DOT army DOT mil>
Reply-To: jeffdbREMOVETHIS AT netzone DOT com
Mime-Version: 1.0
To: GBradfor <GBradfor AT fhssmtp DOT redstone DOT army DOT mil>, gnu-win32 AT cygnus DOT com

-MT just links with the multi threaded vc++ libs, see win32.mak
in the Platform SDK and the headers for docs on this.

--subsystem windows is the ld.exe command line option.

This can be passed to ld.exe (the linker) by gcc.exe (the compiler driver) by putting
-Wl,--subsystem,windows on the gcc command line
note the use of , instead of space.

the best ? option to use is -mwindows	(libuser32.a) 	(libgui32.a)
this will automatically pass --subsystem windows -luser32 and -lgui32
to the linker.

Geoff, could we get this changed to -windows
-m gets misread by cpp as a processor spec, which
makes -mwindows unless for -I options in specs.

Use the source luke. ;^)

On Tue, 28 Oct 1997 08:53:55 -0600, you wrote:

>     I have been reading over the README file that comes along with the 
>     cygwin32 package, particularly the part on "How to Write a GUI 
>     Application."  As the reader knows, this section lists all of the 
>     libraries that might possibly need to be included to support the SDK.  
>     Also, it states that the command line option "--subsystem,windows" 
>     should be used.
>     
>     Now, I realize that this is VERY similar to the VC++ option 
>     "SUBSYSTEM:windows."  However, I have looked through all the 
>     documentation I can find at the Cygnus site and have not been able to 
>     find this option (or the listed libraries) documented anywhere.  Where 
>     should I REALLY be looking?
>     
>     While we're on the subject, VC++ supports an option "-MT" for 
>     compiling multithreaded applications.  Is there something similar for 
>     gcc?
>     
>     Thanks for your patience.
>     
>     /s/
>     Pat Bradford
>     
>     Please respond to:
>        gbradfor AT redstone DOT army DOT mil
>                AND/OR
>        p_n_brad AT traveller DOT com
>-
>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".
>

(jeffdbREMOVETHIS AT netzone DOT com)
delete REMOVETHIS from the above to reply
         Mikey
-
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