我正在构建一个关于VS 11 Professional beta版的简单程序。
#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 ==========
如果我只是单独编译源文件(即,不构建项目),它就会编译。我搜索了这个错误,但没有找到太多有用的信息。我见过编译器和链接器属性。不,在哪里看到-ologo
选项。我不确定这个无效选项的来源。
我在我的系统上安装了VS 2005,2010。这与此错误有关吗?任何帮助都是值得赞赏的。
去project
- > Properties
- > Configuration Properties
- > General
。将平台工具集更改为您正在使用的正确工具集。或者只是改变Suppress Startup Banner to 'no'。
如果要将源代码从32位迁移到64位平台,并且在构建期间遇到此错误,请执行以下操作: