【问题标题】:Cannot compile new project targeting WinXP after installing VS2015 Update 3安装 VS2015 Update 3 后无法编译针对 WinXP 的新项目
【发布时间】:2016-10-21 06:55:48
【问题描述】:

复制步骤:
1.安装vs2015 u3 RC
2.新建一个win32项目
3. 将平台工具集设置为“Visual Studio 2015 - Windows XP (v140_xp)”
您可以在此处找到设置:
项目 -> 配置属性 -> 常规
4. 构建

致命错误 C1083:无法打开包含文件:'ctype.h':没有这样的文件或目录

(没有第3步,编译就好了)

【问题讨论】:

    标签: c++ visual-studio-2015


    【解决方案1】:

    这是 a known problem,带有 Visual Studio 2015 Update 3 RC。

    使用 v140_xp PlatformToolset 时 Visual C++ 项目构建失败

    问题:
    使用 PlatformToolset v140_xp 时,UCRT 不会添加到 Include 和库路径。

    解决方法:

    • 在 Visual Studio 中,转到解决方案资源管理器。
    • 右击项目,点击“属性”,找到并选择“VC++目录”
    • 使用“$(MSBuildProgramFiles32)\Windows 附加包含目录 套件\10\包括\10.0.10240.0\ucrt”
    • 使用“$(MSBuildProgramFiles32)\Windows 附加库目录 套件\10\lib\10.0.10240.0\ucrt\$(PlatformShortName)”
    • 单击“确定”或“应用”以保存。

    【讨论】:

      猜你喜欢
      • 2021-01-30
      • 2020-03-19
      • 2015-11-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多