2012/5/11 Earnie Boyd <[email protected]>:
> On Fri, May 11, 2012 at 2:20 AM, Ruben Van Boxem
> <[email protected]> wrote:
>> Op 11 mei 2012 03:50 schreef "tomdean" <[email protected]> het volgende:
>>
>>
>>>
>>> On 5/10/2012 6:00 PM, Luis Lavena wrote:
>>> > Use gcc -mwindows, by default it will create a console application.
>>> > See gcc --target-help
>>> I am using 'g++ -I. -lgdi32 -lcomctl32 -lcomdlg32 <filename>.cpp  -o
>>> <filename>'
>>>
>>> When I double click on <filename>.exe, a command window opens then
>>> whatever window I create opens.
>>>
>>
>> Use 'g++ -mwindows -lgdi32 -lcomctl32 -lcomdlg32 <filename>.cpp  -o
>> <filename>' instead. If you leave out -mwindows, GCC defaults to -mconsole
>> and you get a console window. The same applies to msvc with the /subsystem
>> commandline option.
>
> Isn't the library specification order incorrect and perhaps not needed?
>
> --
> Earnie

Well, the order of the libraries is incorrect, but also bogus.
Therefore no harm is caused by this. The gcc frontend adds
auto-magically the libraries in proper order - see output of frontend
with -v option.

If you don't want console then build GUI mode, means use the -mwindows option.

Kai

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to