When linking, add -subsystem=windows to your linker command line.

If we use gcc/g++ to link, the command line would look like:
   gcc main.o foo.o bar.o -Wl,-subsystem,windows

------------------                               
Best regards,
lh_mouse
2015-05-21

-------------------------------------------------------------
发件人:"Hotmail \(ArbolOne\)" <[email protected]>
发送日期:2015-05-21 05:50
收件人:gcc-help Mailing List,MinGW-64 Mailinglist
抄送:
主题:[Mingw-w64-public] how do I remove this window

When running a Win32 program, I get a prompt window, how do I remove this 
window? 


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to