Visual Studio 11的构建问题 [英] Build issues with Visual Studio 11
问题描述
我在VS 11专业测试版上建立一个简单的程式。
I am building a simple program on VS 11 Professional beta edition.
#include <iostream>
int main(){
std::cout << "Hello World" << std::endl;
}
但我收到了RC错误。
1>------ Build started: Project: Stephen, Configuration: Debug Win32 ------
1>Build started 5/23/2012 8:31:30 PM.
1>InitializeBuildStatus:
1> Touching "Debug\Stephen.unsuccessfulbuild".
1>ClCompile:
1> Source.cpp
1>RC : fatal error RC1106: invalid option: -ologo
1>
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:01.67
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
如果我只是编译源文件(即不构建项目)它编译。我google了这个错误,但没有找到很多有用的信息。我已经看到编译器和链接器属性。不,其中 -ologo
选项被看到。我不知道这个无效选项是从哪里来的。
If I just compile the source file alone (i.e., not building the project), it compiles. I googled on this error but didn't find much useful information. I have seen the compiler and linker properties. No, where -ologo
option is seen. I amn't sure where this invalid option is coming from.
我在我的系统上安装了VS 2005,2010。这与这个错误有什么关系吗?
I have VS 2005, 2010 installed on my system. Does this has anything to do with this error ? Any help is aprreciated.
推荐答案
转到项目
- > 属性
- > 配置属性
- > 一般
。将平台工具集更改为您正在使用的正确工具集。或者只需更改禁止启动横幅为否。
Go to project
-> Properties
-> Configuration Properties
-> General
. Change the platform toolset to the correct toolset you are using. Or just change Suppress Startup Banner to 'no'.
这篇关于Visual Studio 11的构建问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!