Mail Archives: cygwin/1998/06/05/11:33:55
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 -