c++ - 链接 CEF3 的问题

标签 c++ dynamic-linking chromium-embedded

我在使用 MD/MDd 运行时库链接的应用程序中使用 CEF 时遇到了一些问题。

我已经从 cefbuilds.com 下载了最新版本的 CEF3并按照说明 How to link CEF against a different run-time library .

在将“运行时库”更改为“/MDd”并将“平台工具集”更改为“v110”后,我构建了“libcef_dll_wrapper”项目,然后将生成的“libcef_dll_wrapper.lib”二进制文件链接到我的项目。

但是,当我尝试构建我的项目时,出现以下错误:

12>html.lib(html_producer.obj) : error LNK2019: unresolved external symbol _cef_string_utf16_clear referenced in function "public: static void __cdecl CefBrowserSettingsTraits::clear(struct _cef_browser_settings_t *)" (?clear@CefBrowserSettingsTraits@@SAXPAU_cef_browser_settings_t@@@Z)
12>html.lib(html_producer.obj) : error LNK2019: unresolved external symbol _cef_string_utf8_to_utf16 referenced in function "public: static bool __cdecl CefStringTraitsUTF16::from_string(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,struct _cef_string_utf16_t *)" (?from_string@CefStringTraitsUTF16@@SA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAU_cef_string_utf16_t@@@Z)
12>html.lib(html_producer.obj) : error LNK2019: unresolved external symbol _cef_string_list_free referenced in function "public: static void __cdecl CefSettingsTraits::clear(struct _cef_settings_t *)" (?clear@CefSettingsTraits@@SAXPAU_cef_settings_t@@@Z)
12>html.lib(html_producer.obj) : error LNK2019: unresolved external symbol "public: static bool __cdecl CefBrowser::CreateBrowser(class CefWindowInfo &,class CefRefPtr<class CefClient>,class CefStringBase<struct CefStringTraitsUTF16> const &,class CefStructBase<struct CefBrowserSettingsTraits> const &)" (?CreateBrowser@CefBrowser@@SA_NAAVCefWindowInfo@@V?$CefRefPtr@VCefClient@@@@ABV?$CefStringBase@UCefStringTraitsUTF16@@@@ABV?$CefStructBase@UCefBrowserSettingsTraits@@@@@Z) referenced in function "public: void __thiscall caspar::html::html_producer::run(void)" (?run@html_producer@html@caspar@@QAEXXZ)
12>html.lib(html_producer.obj) : error LNK2019: unresolved external symbol "bool __cdecl CefInitialize(class CefStructBase<struct CefSettingsTraits> const &,class CefRefPtr<class CefApp>)" (?CefInitialize@@YA_NABV?$CefStructBase@UCefSettingsTraits@@@@V?$CefRefPtr@VCefApp@@@@@Z) referenced in function "public: void __thiscall caspar::html::html_producer::run(void)" (?run@html_producer@html@caspar@@QAEXXZ)
12>libcef_dll_wrapper.lib(libcef_dll_wrapper.obj) : error LNK2019: unresolved external symbol __imp__cef_execute_process referenced in function "int __cdecl CefExecuteProcess(class CefMainArgs const &,class CefRefPtr<class CefApp>)" (?CefExecuteProcess@@YAHABVCefMainArgs@@V?$CefRefPtr@VCefApp@@@@@Z)
12>libcef_dll_wrapper.lib(libcef_dll_wrapper.obj) : error LNK2019: unresolved external symbol __imp__cef_initialize referenced in function "bool __cdecl CefInitialize(class CefMainArgs const &,class CefStructBase<struct CefSettingsTraits> const &,class CefRefPtr<class CefApp>)" (?CefInitialize@@YA_NABVCefMainArgs@@ABV?$CefStructBase@UCefSettingsTraits@@@@V?$CefRefPtr@VCefApp@@@@@Z)
12>libcef_dll_wrapper.lib(libcef_dll_wrapper.obj) : error LNK2019: unresolved external symbol __imp__cef_shutdown referenced in function "void __cdecl CefShutdown(void)" (?CefShutdown@@YAXXZ)
12>libcef_dll_wrapper.lib(libcef_dll_wrapper.obj) : error LNK2019: unresolved external symbol __imp__cef_do_message_loop_work referenced in function "void __cdecl CefDoMessageLoopWork(void)" (?CefDoMessageLoopWork@@YAXXZ)
12>libcef_dll_wrapper.lib(libcef_dll_wrapper.obj) : error LNK2019: unresolved external symbol __imp__cef_run_message_loop referenced in function "void __cdecl CefRunMessageLoop(void)" (?CefRunMessageLoop@@YAXXZ)

可以找到完整的日志here .

关于我可能遗漏了什么有什么想法吗?

最佳答案

链接器输入中是否也有 libcef.lib?

关于c++ - 链接 CEF3 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19069229/

相关文章:

c++ - 在 Linux 上计时共享库加载时间

c# - CEFsharp 3 检索响应 header

Delphi TChromium/DCEF3 - 持续访问冲突

qt - 部署 Qt 共享库时替换 RPATH

c++ - 相邻矩阵

c++ - nuwen.net MinGW Distro 中没有 `fileno()` 功能?

c++ - boost::empty_init_t的作用是什么?

linux - 为什么 gcc 在显然不需要时生成 PLT?

c# - CefSharp WinForms Web 浏览器不显示

c++ - 单向链表 - 由于析构函数的实现而导致的段错误