VC ++ CefSharp导入Win32 - > x64错误

时间:2015-10-15 10:49:04

标签: visual-c++ 64-bit cefsharp

在VS2013社区版中,我有一个我一直在研究的Win32 VC ++ clr项目。我正在尝试使用CefSharp库,所以通过nuget我已经导入了它。

按照找到的步骤here我了解到我必须从Win32更改为x64作为我的'Active solution platform'以避免这种情况:

error : CefSharp.Common does not work correctly on 'Win32' platform. You need to specify platform (x86 / x64).

然而,当我按照这些步骤并通过配置管理器将x64添加到我的项目时,我收到以下编译错误:

1>------ Build started: Project: PROJECTNAME, Configuration: Release x64 ------
1>  Main.cpp
1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\system_error(20): error C2869: 'std::errc' : has already been defined to be a namespace
1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\system_error(101): error C2146: syntax error : missing ';' before identifier 'generic_errno'
1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\system_error(101): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\system_error(101): fatal error C1903: unable to recover from previous error(s); stopping compilation

我不确定导致这种情况的原因或解决方法。

0 个答案:

没有答案