delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/06/05/11:33:55

From: colin AT fu DOT is DOT saga-u DOT ac DOT jp (Colin Peters)
Subject: RE: -mwindows option
5 Jun 1998 11:33:55 -0700 :
Message-ID: <003201bd901e$d9d6e600$fa173185.cygnus.gnu-win32@gbird0.fu.is.saga-u.ac.jp>
Mime-Version: 1.0
To: "Rick Rankin" <rrankin AT primenet DOT com>,
"Ucok Freddy M." <ucokfm AT indosat DOT co DOT id>, <gnu-win32 AT cygnus DOT com>

Rick Rankin <rrankin AT primenet DOT com> wrote:

>I ran into the same problem. when I use -mwindows, I get am message from
>cc1.exe saying that "windows" is not a valid option. I'm using Sergey's
>coolview and egcs-1.0.2 on NT 4.0 SP3.
>
>Rick
>
>> -----Original Message-----
>> From: owner-gnu-win32 AT cygnus DOT com [mailto:owner-gnu-win32 AT cygnus DOT com]On
>> Behalf Of Ucok Freddy M.
>> Sent: Wednesday, June 03, 1998 4:04 AM
>> To: 'gnu-win32 AT cygnus DOT com'
>> Subject: -mwindows option
>>
>>
>> I want to make a GUI app by using -mwindows option at gcc
>> command, but it's
>> not working. Anyone can tell me what must i configure to enable
>> me using the
>> -mwindows option ?


You should only use -mwindows at the linking stage, the compiler doesn't
understand it. In other words:
  gcc -o foo.exe foo.o bar.o -mwindows
is fine, but
  gcc -o foo.exe foo.c bar.c -mwindows
or
  gcc -c -o foo.o foo.c -mwindows
are not.

I think this has been mentioned before on the mailing list.

Hope that helps,
Colin.

-- Colin Peters - colin at fu.is.saga-u.ac.jp
-- Saga Univ. Dept. of Information Science
-- http://www.geocities.com/Tokyo/Towers/6162/index.html
-- http://www.fu.is.saga-u.ac.jp/~colin/index.html


-
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