MFC 嵌入 CEF內核 編譯錯誤 我用的是VS2010 , cef的版本是cef_binary_3.2743.1442.ge29124d_windows32
下面是錯誤提示:
error LNK2019: 無法決議的外部符號 "__declspec(dllimport) bool __cdecl std::uncaught_exception(void)" (__imp_?uncaught_exception@std@@YA_NXZ),該符號在函式 "public: __thiscall std::basic_ostream<char,struct std::char_traits<char> >::sentry::~sentry(void)" (??1sentry@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE@XZ) 中被參考
1>E:\cppfile\CEFDemo\Debug\CEFDemo.exe : fatal error LNK1120: 1 個無法決議的外部命令
還報了一些警告:
warning LNK4217: 本地定義的符號 ?flush@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@XZ (public: class std::basic_ostream<char,struct std::char_traits<char> > & __thiscall std::basic_ostream<char,struct std::char_traits<char> >::flush(void)) 在函式 "public: __thiscall std::basic_ostream<char,struct std::char_traits<char> >::sentry::sentry(class std::basic_ostream<char,struct std::char_traits<char> > &)" (??0sentry@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE@AAV12@@Z) 中匯入
1>CefBrowserEventHandler.obj : warning LNK4217: 本地定義的符號 ?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_ostream@DU?$char_traits@D@std@@@2@XZ (public: class std::basic_ostream<char,struct std::char_traits<char> > * __thiscall std::basic_ios<char,struct std::char_traits<char> >::tie(void)const ) 在函式 "public: __thiscall std::basic_ostream<char,struct std::char_traits<char> >::sentry::sentry(class std::basic_ostream<char,struct std::char_traits<char> > &)" (??0sentry@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE@AAV12@@Z) 中匯入
1>CefBrowserEventHandler.obj : warning LNK4217: 本地定義的符號 ?good@ios_base@std@@QBE_NXZ (public: bool __thiscall std::ios_base::good(void)const ) 在函式 "public: __thiscall std::basic_ostream<char,struct std::char_traits<char> >::sentry::sentry(class std::basic_ostream<char,struct std::char_traits<char> > &)" (??0sentry@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE@AAV12@@Z) 中匯入
1>CefBrowserEventHandler.obj : warning LNK4217: 本地定義的符號 ?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ (public: void __thiscall std::basic_ostream<char,struct std::char_traits<char> >::_Osfx(void)) 在函式 "public: __thiscall std::basic_ostream<char,struct std::char_traits<char> >::sentry::~sentry(void)" (??1sentry@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE@XZ) 中匯入
1>CefBrowserEventHandler.obj : warning LNK4217: 本地定義的符號 ??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAE@XZ (protected: __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::basic_streambuf<char,struct std::char_traits<char> >(void)) 在函式 "public: __thiscall std::basic_stringbuf<char,struct std::char_traits<char>,class std::allocator<char> >::basic_stringbuf<char,struct std::char_traits<char>,class std::allocator<char> >(int)" (??0?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@H@Z) 中匯入
uj5u.com熱心網友回復:
用的cef是否是相同版本vs編譯的,lib庫有沒有引入工程轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/82935.html
標籤:基礎類
