今天我编译了我的c ++ Windows应用程序,它已启动控制台和应用程序,但控制台从未出现过。有人告诉我如何删除控制台?
This happens if your linker settings have /SUBSYSTEM:CONSOLE. Change that to /SUBSYSTEM:WINDOWS
http://msdn.microsoft.com/en-us/library/fcc1zstk%28v=vs.100%29.aspx
Or open the property page of your executable and update Linker/System/Subsystem to Windows.
Edit: Now that you specify you are not using Visual Studio I know that the property page will not help. I am not sure if Dev C++ is using mingw although even if it was I could not help finding how to fix the linker setting anyways since I do not use mingw either..
对于mingw
编译器,您应该将-subsystem windows
传递给链接器
g++ -Wl,-subsystem,windows <other linker options>
有一些错误,我刚刚重新启动了Dev C ++,它修复了我也删除了应用程序中的一些文件,我认为它们可能是问题,因为我有2个空的.rc文件。如果有人有这个问题试试看垃圾并重新启动应用程序
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.