What's the equivalent of gcc's -mwindows option for cl in windows?
cl : Command line warning D9002 : ignoring unknown option '-mwindows'
Seems -mwindows
is only for gcc
,开发者_C百科 does cl
has a similar option?
That would probably the /subsystem option to the linker
Specifically /SUBSYSTEM:WINDOWS
It allows you to choose between compiling a console application and a windows application by setting a flag in the PE header
精彩评论