Cef项目编译链接error2001

cef project compile link error2001

本文关键字:error2001 链接 编译 项目 Cef      更新时间:2023-10-16

我已经下载了cef_binary_3.2840.1493。g4e029f4_windows32开始我的项目与CEF。在我使用cmake来构建VS项目后,我使用VS2015来编译cef项目(cef_simple),但它似乎有这样的链接错误:void __cdecl base::allocator::InsertAllocatorDispatch(struct base::allocator::AllocatorDispatch *)"(?InsertAllocatorDispatch@allocator@base@ YAXPAUAllocatorDispatch@12@ z) cefsimple D:cefcefsimplecef_sandbox.lib(malloc_dump_provider.obj)这让我感到困惑,因为其他人可以编译和运行它成功(他的系统是WIN10 64与VS2013),所以有人可以给我答案吗?PS:我的系统是WIN7 64

变通办法:删除字符串../../debug/cef_sandbox.lib。(在项目设置-> link ->input->AdditionalDependencies)并且还需要在定义中删除:CEF_USE_SANDBOX

注:在'https://bitbucket.org/chromiumembedded/cef/wiki/Tutorial'和cefsimple_win的评论中描述了这个问题。cc文件。此错误的原因:cef_sandbox。在VS2013和新版本的VS中,它没有链接。另一个解决方案是使用:-DUSE_SANDBOX=OFF运行Cmake