我正在尝试在我的电脑上运行一个简单的hello世界但是当我尝试编译它时,我有很多来自Cmath,stdio,stdlib的错误。我已经考虑了环境变量,但我不知道它可能来自哪里。
我试图创建另一个项目并重新安装visual studio。 我在Windows 8.1上,有windows sdk并使用visual studio 2015社区。 p>
我的hello world代码:
#include "stdafx.h"
#include <iostream>
int main()
{
std::cout<<"hello world"<<std::endl;
return 0;
}
这是输出:
1>------ Build started: Project: ConsoleApplication1, Configuration: Debug Win32 ------
1> stdafx.cpp
1>d:\visual studio\vc\include\stdio.h(295): error C2144: syntax error: 'int' should be preceded by ';'
1>d:\visual studio\vc\include\stdio.h(295): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\stdio.h(297): error C2144: syntax error: 'int' should be preceded by ';'
1>d:\visual studio\vc\include\stdio.h(297): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\stdio.h(297): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
1> d:\visual studio\vc\include\stdio.h(295): note: see declaration of '_CRTIMP_ALTERNATIVE'
1>d:\visual studio\vc\include\stdio.h(304): error C2144: syntax error: 'int' should be preceded by ';'
1>d:\visual studio\vc\include\stdio.h(304): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\stdio.h(304): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
1> d:\visual studio\vc\include\stdio.h(295): note: see declaration of '_CRTIMP_ALTERNATIVE'
1>d:\visual studio\vc\include\stdio.h(307): error C2144: syntax error: 'int' should be preceded by ';'
1>d:\visual studio\vc\include\stdio.h(307): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\stdio.h(307): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
1> d:\visual studio\vc\include\stdio.h(295): note: see declaration of '_CRTIMP_ALTERNATIVE'
1>d:\visual studio\vc\include\stdio.h(316): error C2144: syntax error: 'int' should be preceded by ';'
1>d:\visual studio\vc\include\stdio.h(316): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\stdio.h(316): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
1> d:\visual studio\vc\include\stdio.h(295): note: see declaration of '_CRTIMP_ALTERNATIVE'
1>d:\visual studio\vc\include\stdio.h(318): error C2144: syntax error: 'int' should be preceded by ';'
1>d:\visual studio\vc\include\stdio.h(318): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\stdio.h(318): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
1> d:\visual studio\vc\include\stdio.h(295): note: see declaration of '_CRTIMP_ALTERNATIVE'
1>d:\visual studio\vc\include\stdio.h(321): error C2144: syntax error: 'int' should be preceded by ';'
1>d:\visual studio\vc\include\stdio.h(321): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\stdio.h(321): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
1> d:\visual studio\vc\include\stdio.h(295): note: see declaration of '_CRTIMP_ALTERNATIVE'
1>d:\visual studio\vc\include\stdio.h(322): error C2144: syntax error: 'int' should be preceded by ';'
1>d:\visual studio\vc\include\stdio.h(322): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\stdio.h(322): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
1> d:\visual studio\vc\include\stdio.h(295): note: see declaration of '_CRTIMP_ALTERNATIVE'
1>d:\visual studio\vc\include\stdio.h(345): error C2144: syntax error: 'int' should be preceded by ';'
1>d:\visual studio\vc\include\stdio.h(345): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\stdio.h(345): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
1> d:\visual studio\vc\include\stdio.h(295): note: see declaration of '_CRTIMP_ALTERNATIVE'
1>d:\visual studio\vc\include\stdio.h(349): warning C4003: not enough actual parameters for macro '__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_ARGLIST_EX'
1>d:\visual studio\vc\include\stdio.h(349): error C2146: syntax error: missing ';' before identifier '_vsnprintf'
1>d:\visual studio\vc\include\stdio.h(349): error C2143: syntax error: missing ',' before '*'
1>d:\visual studio\vc\include\stdio.h(349): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\stdio.h(349): error C2199: syntax error: found 'char (' at global scope (was a declaration intended?)
1>d:\visual studio\vc\include\stdio.h(349): error C2062: type 'char' unexpected
1>d:\visual studio\vc\include\stdio.h(352): error C2144: syntax error: 'int' should be preceded by ';'
1>d:\visual studio\vc\include\stdio.h(352): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\stdio.h(352): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
1> d:\visual studio\vc\include\stdio.h(295): note: see declaration of '_CRTIMP_ALTERNATIVE'
1>d:\visual studio\vc\include\stdio.h(357): warning C4003: not enough actual parameters for macro '__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_ARGLIST'
1>d:\visual studio\vc\include\stdio.h(357): error C2146: syntax error: missing ';' before identifier 'vsprintf'
1>d:\visual studio\vc\include\stdio.h(357): error C2143: syntax error: missing ',' before '*'
1>d:\visual studio\vc\include\stdio.h(357): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\stdio.h(357): error C2365: 'sprintf': redefinition; previous definition was 'data variable'
1> d:\visual studio\vc\include\stdio.h(357): note: see declaration of 'sprintf'
1>d:\visual studio\vc\include\stdio.h(390): error C2144: syntax error: 'int' should be preceded by ';'
1>d:\visual studio\vc\include\stdio.h(390): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\stdio.h(390): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
1> d:\visual studio\vc\include\stdio.h(295): note: see declaration of '_CRTIMP_ALTERNATIVE'
1>d:\visual studio\vc\include\stdio.h(393): error C2144: syntax error: 'int' should be preceded by ';'
1>d:\visual studio\vc\include\stdio.h(393): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\stdio.h(393): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
1> d:\visual studio\vc\include\stdio.h(295): note: see declaration of '_CRTIMP_ALTERNATIVE'
1>d:\visual studio\vc\include\stdio.h(402): error C2144: syntax error: 'int' should be preceded by ';'
1>d:\visual studio\vc\include\stdio.h(402): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\stdio.h(402): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
1> d:\visual studio\vc\include\stdio.h(295): note: see declaration of '_CRTIMP_ALTERNATIVE'
1>d:\visual studio\vc\include\stdio.h(457): error C2144: syntax error: 'int' should be preceded by ';'
1>d:\visual studio\vc\include\stdio.h(457): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\stdio.h(457): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
1> d:\visual studio\vc\include\stdio.h(295): note: see declaration of '_CRTIMP_ALTERNATIVE'
1>d:\visual studio\vc\include\stdio.h(461): error C2144: syntax error: 'int' should be preceded by ';'
1>d:\visual studio\vc\include\stdio.h(461): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\stdio.h(461): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
1> d:\visual studio\vc\include\stdio.h(295): note: see declaration of '_CRTIMP_ALTERNATIVE'
1>d:\visual studio\vc\include\stdio.h(468): error C2144: syntax error: 'int' should be preceded by ';'
1>d:\visual studio\vc\include\stdio.h(468): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\stdio.h(468): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
1> d:\visual studio\vc\include\stdio.h(295): note: see declaration of '_CRTIMP_ALTERNATIVE'
1>d:\visual studio\vc\include\stdio.h(470): error C2144: syntax error: 'int' should be preceded by ';'
1>d:\visual studio\vc\include\stdio.h(470): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\stdio.h(470): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
1> d:\visual studio\vc\include\stdio.h(295): note: see declaration of '_CRTIMP_ALTERNATIVE'
1>d:\visual studio\vc\include\stdio.h(474): warning C4003: not enough actual parameters for macro '__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_ARGLIST_EX'
1>d:\visual studio\vc\include\stdio.h(474): error C2146: syntax error: missing ';' before identifier '_vsnwprintf'
1>d:\visual studio\vc\include\stdio.h(474): error C2143: syntax error: missing ',' before '*'
1>d:\visual studio\vc\include\stdio.h(474): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\stdio.h(474): error C2199: syntax error: found 'wchar_t (' at global scope (was a declaration intended?)
1>d:\visual studio\vc\include\stdio.h(474): error C2062: type 'wchar_t' unexpected
1>d:\visual studio\vc\include\stdio.h(502): error C2144: syntax error: 'int' should be preceded by ';'
1>d:\visual studio\vc\include\stdio.h(502): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\stdio.h(502): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
1> d:\visual studio\vc\include\stdio.h(295): note: see declaration of '_CRTIMP_ALTERNATIVE'
1>d:\visual studio\vc\include\stdio.h(505): error C2144: syntax error: 'int' should be preceded by ';'
1>d:\visual studio\vc\include\stdio.h(505): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\stdio.h(505): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
1> d:\visual studio\vc\include\stdio.h(295): note: see declaration of '_CRTIMP_ALTERNATIVE'
1>d:\visual studio\vc\include\stdio.h(512): error C2144: syntax error: 'int' should be preceded by ';'
1>d:\visual studio\vc\include\stdio.h(512): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\stdio.h(512): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
1> d:\visual studio\vc\include\stdio.h(295): note: see declaration of '_CRTIMP_ALTERNATIVE'
1>d:\visual studio\vc\include\stdio.h(514): error C2144: syntax error: 'int' should be preceded by ';'
1>d:\visual studio\vc\include\stdio.h(514): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\stdio.h(514): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
1> d:\visual studio\vc\include\stdio.h(295): note: see declaration of '_CRTIMP_ALTERNATIVE'
1>d:\visual studio\vc\include\stdio.h(530): warning C4003: not enough actual parameters for macro '__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_ARGLIST_EX'
1>d:\visual studio\vc\include\stdio.h(530): error C2146: syntax error: missing ';' before identifier '_swprintf_s'
1>d:\visual studio\vc\include\stdio.h(530): error C2143: syntax error: missing ',' before '*'
1>d:\visual studio\vc\include\stdio.h(530): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\stdio.h(530): error C2146: syntax error: missing ';' before identifier 'vswprintf_s'
1>d:\visual studio\vc\include\stdio.h(530): error C2733: 'vswprintf_s': second C linkage of overloaded function not allowed
1> d:\visual studio\vc\include\stdio.h(461): note: see declaration of 'vswprintf_s'
1>d:\visual studio\vc\include\stdio.h(531): warning C4003: not enough actual parameters for macro '__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_2_ARGLIST_EX'
1>d:\visual studio\vc\include\stdio.h(531): error C2146: syntax error: missing ';' before identifier '__vswprintf_l'
1>d:\visual studio\vc\include\stdio.h(531): error C2143: syntax error: missing ',' before '*'
1>d:\visual studio\vc\include\stdio.h(531): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\stdio.h(531): error C2146: syntax error: missing ';' before identifier '_vswprintf_s_l'
1>d:\visual studio\vc\include\stdio.h(531): error C2733: '_vswprintf_s_l': second C linkage of overloaded function not allowed
1> d:\visual studio\vc\include\stdio.h(505): note: see declaration of '_vswprintf_s_l'
1>d:\visual studio\vc\include\swprintf.inl(40): error C3861: '_crt_va_start': identifier not found
1>d:\visual studio\vc\include\swprintf.inl(42): error C3861: '_crt_va_end': identifier not found
1>d:\visual studio\vc\include\swprintf.inl(64): error C3861: '_crt_va_start': identifier not found
1>d:\visual studio\vc\include\swprintf.inl(66): error C3861: '_crt_va_end': identifier not found
1>d:\visual studio\vc\include\swprintf.inl(88): error C3861: '_crt_va_start': identifier not found
1>d:\visual studio\vc\include\swprintf.inl(89): error C3861: '_vswprintf': identifier not found
1>d:\visual studio\vc\include\swprintf.inl(90): error C3861: '_crt_va_end': identifier not found
1>d:\visual studio\vc\include\swprintf.inl(99): error C3861: '_vswprintf': identifier not found
1>d:\visual studio\vc\include\swprintf.inl(108): error C3861: '_crt_va_start': identifier not found
1>d:\visual studio\vc\include\swprintf.inl(109): error C2660: '__vswprintf_l': function does not take 4 arguments
1>d:\visual studio\vc\include\swprintf.inl(110): error C3861: '_crt_va_end': identifier not found
1>d:\visual studio\vc\include\swprintf.inl(119): error C2660: '__vswprintf_l': function does not take 4 arguments
1>d:\visual studio\vc\include\stdio.h(571): error C2144: syntax error: 'int' should be preceded by ';'
1>d:\visual studio\vc\include\stdio.h(571): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\stdio.h(571): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
1> d:\visual studio\vc\include\stdio.h(295): note: see declaration of '_CRTIMP_ALTERNATIVE'
1>d:\visual studio\vc\include\stdio.h(573): error C2144: syntax error: 'int' should be preceded by ';'
1>d:\visual studio\vc\include\stdio.h(573): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\stdio.h(573): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
1> d:\visual studio\vc\include\stdio.h(295): note: see declaration of '_CRTIMP_ALTERNATIVE'
1>d:\visual studio\vc\include\stdio.h(576): error C2144: syntax error: 'int' should be preceded by ';'
1>d:\visual studio\vc\include\stdio.h(576): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\stdio.h(576): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
1> d:\visual studio\vc\include\stdio.h(295): note: see declaration of '_CRTIMP_ALTERNATIVE'
1>d:\visual studio\vc\include\stdio.h(577): error C2144: syntax error: 'int' should be preceded by ';'
1>d:\visual studio\vc\include\stdio.h(577): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\stdio.h(577): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
1> d:\visual studio\vc\include\stdio.h(295): note: see declaration of '_CRTIMP_ALTERNATIVE'
1>d:\visual studio\vc\include\stdio.h(581): error C2144: syntax error: 'int' should be preceded by ';'
1>d:\visual studio\vc\include\stdio.h(581): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\stdio.h(581): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
1> d:\visual studio\vc\include\stdio.h(295): note: see declaration of '_CRTIMP_ALTERNATIVE'
1>d:\visual studio\vc\include\stdio.h(583): error C2144: syntax error: 'int' should be preceded by ';'
1>d:\visual studio\vc\include\stdio.h(583): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\stdio.h(583): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
1> d:\visual studio\vc\include\stdio.h(295): note: see declaration of '_CRTIMP_ALTERNATIVE'
1>d:\visual studio\vc\include\wchar.h(968): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\wchar.h(968): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
1> d:\visual studio\vc\include\stdio.h(295): note: see declaration of '_CRTIMP_ALTERNATIVE'
1>d:\visual studio\vc\include\wchar.h(968): error C2146: syntax error: missing ';' before identifier 'errno_t'
1>d:\visual studio\vc\include\wchar.h(986): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\wchar.h(986): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
1> d:\visual studio\vc\include\stdio.h(295): note: see declaration of '_CRTIMP_ALTERNATIVE'
1>d:\visual studio\vc\include\wchar.h(986): error C2146: syntax error: missing ';' before identifier 'errno_t'
1>d:\visual studio\vc\include\wchar.h(1015): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\wchar.h(1015): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
1> d:\visual studio\vc\include\stdio.h(295): note: see declaration of '_CRTIMP_ALTERNATIVE'
1>d:\visual studio\vc\include\wchar.h(1015): error C2146: syntax error: missing ';' before identifier 'errno_t'
1>d:\visual studio\vc\include\wchar.h(1022): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\wchar.h(1022): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
1> d:\visual studio\vc\include\stdio.h(295): note: see declaration of '_CRTIMP_ALTERNATIVE'
1>d:\visual studio\vc\include\wchar.h(1022): error C2146: syntax error: missing ';' before identifier 'errno_t'
1>d:\visual studio\vc\include\wchar.h(1042): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\wchar.h(1042): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
1> d:\visual studio\vc\include\stdio.h(295): note: see declaration of '_CRTIMP_ALTERNATIVE'
1>d:\visual studio\vc\include\wchar.h(1042): error C2146: syntax error: missing ';' before identifier 'errno_t'
1>d:\visual studio\vc\include\wchar.h(1053): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\wchar.h(1053): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
1> d:\visual studio\vc\include\stdio.h(295): note: see declaration of '_CRTIMP_ALTERNATIVE'
1>d:\visual studio\vc\include\wchar.h(1053): error C2146: syntax error: missing ';' before identifier 'errno_t'
1>d:\visual studio\vc\include\wchar.h(1062): error C2144: syntax error: 'wchar_t' should be preceded by ';'
1>d:\visual studio\vc\include\wchar.h(1062): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\wchar.h(1062): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
1> d:\visual studio\vc\include\stdio.h(295): note: see declaration of '_CRTIMP_ALTERNATIVE'
1>d:\visual studio\vc\include\wchar.h(1074): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\wchar.h(1074): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
1> d:\visual studio\vc\include\stdio.h(295): note: see declaration of '_CRTIMP_ALTERNATIVE'
1>d:\visual studio\vc\include\wchar.h(1074): error C2146: syntax error: missing ';' before identifier 'errno_t'
1>d:\visual studio\vc\include\wchar.h(1078): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio\vc\include\wchar.h(1078): error C2086: 'int _CRTIMP_ALTERNATIVE': redefinition
1> d:\visual studio\vc\include\stdio.h(295): note: see declaration of '_CRTIMP_ALTERNATIVE'
1>d:\visual studio\vc\include\wchar.h(1078): fatal error C1003: error count exceeds 100; stopping compilation
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
答案 0 :(得分:0)
您的代码看起来很好,(除了您提到在评论中删除的include&#34; stdafx.h&#34;),因此它可能与您的项目设置有关。尝试创建一个新项目,但尝试制作一个空项目&#39;相反,在Visual C ++&#39;然后&#39;将军&#39;标签。
答案 1 :(得分:0)
不确定您是否仍在寻找解决方案。
请参阅Visual C ++团队博客上的以下文章:&#34;介绍Universal CRT&#34; (http://blogs.msdn.com/b/vcblog/archive/2015/03/03/introducing-the-universal-crt.aspx)。
您的项目从其包含路径中缺少该目录(C:\ Program Files(x86)\ Windows Kits \ 10 \ Include \ 10.0.10069.0 \ ucrt)。理想情况下,您的项目应该从我们在Visual Studio中提供的内置Visual C ++目标设置的IncludePath派生其IncludePath。如果你这样做,那么这个标题会自动被选中。如果您选择不这样做,则需要将此目录添加到IncludePath(最好添加$(UniversalCRT_IncludePath)