I compiled a program using MinGW g++. When I run it, it opens a console window in addition to the main application window. What's the compiler flag to stop this?
相关问题
- Inheritance impossible in Windows Runtime Componen
- how to get running process information in java?
- Is TWebBrowser dependant on IE version?
- How can I have a python script safely exit itself?
- I want to trace logs using a Macro multi parameter
相关文章
- 如何让cmd.exe 执行 UNICODE 文本格式的批处理?
- 怎么把Windows开机按钮通过修改注册表指向我自己的程序
- Warning : HTML 1300 Navigation occured?
- Bundling the Windows Mono runtime with an applicat
- Windows 8.1 How to fix this obsolete code?
- gcc/g++ gives me error “CreateProcess: No such fil
- Calls that precede a function's definition can
- CosmosDB emulator can't start since port is al
I just add
-mwindows
to linker flags.I believe the compiler switch for that is
-Wl,-subsystem,windows
.The
-Wl,<options>
switch passes<options>
to the linker. The-subsystem
switch tells the linker which system to target when generating the executable.