Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 构建通用应用程序时编译器和库版本之间的cl.exe不匹配_C++_Windows_Win Universal App_Windows 10 Universal - Fatal编程技术网

C++ 构建通用应用程序时编译器和库版本之间的cl.exe不匹配

C++ 构建通用应用程序时编译器和库版本之间的cl.exe不匹配,c++,windows,win-universal-app,windows-10-universal,C++,Windows,Win Universal App,Windows 10 Universal,我正在尝试从命令行使用cl.exe构建Windows通用应用程序。我已经从一个VisualStudio模板中粘贴了命令行参数,但仍然无法使其正常工作。我得到以下错误: F:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\vccorlib.h(348): error C3940: 'EventRegistrationToken': identifier not found - possible mismatch betwee

我正在尝试从命令行使用cl.exe构建Windows通用应用程序。我已经从一个VisualStudio模板中粘贴了命令行参数,但仍然无法使其正常工作。我得到以下错误:

F:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\vccorlib.h(348): error C3940: 'EventRegistrationToken': identifier not found - possible mismatch between compiler and library versions. Please ensure vccorlib.h/.lib, vccorlib120.dll and c1xx.dll match
它似乎使用了错误的包含库

cl.exe命令行还包括以下包含文件的选项:

/LIBPATH:"F:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\\lib\store\amd64"
/LIBPATH:"F:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\\lib\amd64"

通过事先使用适当的选项运行vcvarsall.bat来修复此问题。

通过事先使用适当的选项运行vcvarsall.bat来修复此问题。

请详细说明?我有同样的错误,我运行了vcvarsall.bat amd64 10.0.xxxx.0来匹配我的新sdk版本,但这并没有修复它。如果你还记得是什么问题,我很感谢你的回复。需要更多信息!你能详细说明一下吗?我有同样的错误,我运行了vcvarsall.bat amd64 10.0.xxxx.0来匹配我的新sdk版本,但这并没有修复它。如果你还记得是什么问题,我很感谢你的回复。需要更多信息!