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
-- https://sites.google.com/site/earnieboyd

------------------------------------------------------------------------------
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