问题描述
可以有人请解释这两个声明在Visual Studio 2008中的链接器的属性之间的差异(请尽可能简单,我是在C ++的世界)感谢在advace
can somebody please explain difference between those two declarations in the properties of the linker in visual studio 2008( please as simple as possible, I'm new in the world of C++) thanks in advace
编辑:如果可能,您可以给我两个小程序来显示效果。
edit: if possible can you give me please two small programs to show an effect
推荐答案
/ SUBSYSTEM:CONSOLE)
适用于基于控制台的应用程序。您应该在代码中定义 main
函数。
/SUBSYSTEM:CONSOLE)
is for console based applications. You should define main
function in code.
/ SUBSYSTEM:WINDOWS)
用于GUI应用程序。您应该定义 WinMain
函数。
/SUBSYSTEM:WINDOWS)
is for GUI applications. You should define WinMain
function.
这篇关于控制台(/ SUBSYSTEM:CONSOLE)和Windows(/ SUBSYSTEM:WINDOWS)之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!