[英]Build issues with Visual Studio 11
I am building a simple program on VS 11 Professional beta edition. 我正在VS 11 Professional beta版上构建一个简单的程序。
#include <iostream>
int main(){
std::cout << "Hello World" << std::endl;
}
But I am getting RC errors. 但是我收到了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 ==========
If I just compile the source file alone (ie, 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. 不,在-ologo
可以看到-ologo
选项。 I amn't sure where this invalid option is coming from. 我不确定这个无效的选项来自哪里。
I have VS 2005, 2010 installed on my system. 我的系统上安装了VS 2005、2010。 Does this has anything to do with this error ? 这和这个错误有关吗? Any help is aprreciated. 任何帮助表示赞赏。
Go to project
-> Properties
-> Configuration Properties
-> General
. 转到project
-> Properties
-> Configuration Properties
-> General
。 Change the platform toolset to the correct toolset you are using. 将平台工具集更改为您正在使用的正确工具集。 Or just change Suppress Startup Banner to 'no' . 或者只是将“ 禁止启动横幅”更改为“否” 。
If you are migrating your sourcecode from 32-bit to 64-bit platform and you encounter this error during build, do the following: 如果要将源代码从32位平台迁移到64位平台,并且在构建过程中遇到此错误,请执行以下操作:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.