c++ - 在 Visual Studio 2010 和 11 之间共享 C++ 解决方案

标签 c++ visual-studio

我和我的伙伴都在通过 subversion 共享一个 c++ 解决方案。

他使用的是 Visual Studio 11,而我使用的是 Visual Studio 2010。

在他第一次提交并且我更新后,我收到以下错误:

Error 31 error MSB8008: Specified platform toolset (v110) is not installed or invalid. Please make sure that a supported PlatformToolset value is selected.

另外,在头文件中,我在 #include <stdio.h> 上收到以下错误:

error: cannot open source file "stdio.h"

我猜这是一个兼容性问题。我们如何解决这个问题?

最佳答案

在 Visual Studio 11 中,有一个属性选项可让您指定平台工具集。

如果您从 Visual Studio 11 开始创建新项目,则默认使用 Platform Toolset v110,但如果可以将其更改为 Visual Studio 2010 使用的 v100。

Toolset option

关于c++ - 在 Visual Studio 2010 和 11 之间共享 C++ 解决方案,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10245771/

相关文章:

c++ - 派生类映射

c++ - 返回智能指针

visual-studio - msbuild 无法注册输出

c++ - 在 C++17 或更新版本中在哪里初始化静态常量成员?

c++ - 如何解决在仅 header 库 (C++) 中定义的结构对其他结构类型的循环依赖?

visual-studio - 缺少 Visual Studio 2012 商业智能 SSIS 包

CPU 架构依赖?

c# - Visual Studio 符号缓存中的 D0C3BDDD4ADD4E87B2B5E803303B8D772 等目录名称是什么意思?

.net - Visual Studio 版本和 .NET 目标版本

c++ - 某些旧 C++ 软件编译期间的警告(格式需要 int 类型,参数为 int32)