question for cef 87 version on windows

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

question for cef 87 version on windows

Postby MrGao » Wed Dec 02, 2020 10:12 pm

Using the 4280 version to build CEF, after I successfully compiled the CEF version, I moved the header file and ".lib" file it to my own project. The following problems occurred,I want to ask, the compiler for build cef project on windows platform used in 87 version is clang, does 87 version not support VC compilation and use
MrGao
Newbie
 
Posts: 4
Joined: Mon Nov 23, 2020 1:06 am

Re: question for cef 87 version on windows

Postby magreenblatt » Wed Dec 02, 2020 11:29 pm

What was the problem? Chromium can only be built with clang.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: question for cef 87 version on windows

Postby MrGao » Wed Dec 02, 2020 11:44 pm

I compile 4280 branch,the source code is successfuly compiled on windows, it generate a simple client 。I copy lib the .lib file into my project folder,

>libcef_dll_wrapper.lib(cef_logging.obj) : error LNK2001: unresolved external symbol "protected: void __thiscall std::__1::ios_base::init(void *)" (?init@ios_base@__1@std@@IAEXPAX@Z)
1>libcef_dll_wrapper.lib(cef_logging.obj) : error LNK2001: unresolved external symbol "protected: __thiscall std::__1::basic_streambuf<char,struct std::__1::char_traits<char> >::basic_streambuf<char,struct std::__1::char_traits<char> >(void)" (??0?$basic_streambuf@DU?$char_traits@D@__1@std@@@__1@std@@IAE@XZ)
1>libcef_dll_wrapper.lib(cef_logging.obj) : error LNK2001: unresolved external symbol "public: virtual __thiscall std::__1::basic_streambuf<char,struct std::__1::char_traits<char> >::~basic_streambuf<char,struct std::__1::char_traits<char> >(void)" (??1?$basic_streambuf@DU?$char_traits@D@__1@std@@@__1@std@@UAE@XZ)
1>libcef_dll_wrapper.lib(cef_logging.obj) : error LNK2001: unresolved external symbol "public: virtual __thiscall std::__1::basic_ostream<char,struct std::__1::char_traits<char> >::~basic_ostream<char,struct std::__1::char_traits<char> >(void)" (??1?$basic_ostream@DU?$char_traits@D@__1@std@@@__1@std@@UAE@XZ)
1>libcef_dll_wrapper.lib(cef_logging.obj) : error LNK2001: unresolved external symbol "public: virtual __thiscall std::__1::basic_ios<char,struct std::__1::char_traits<char> >::~basic_ios<char,struct std::__1::char_traits<char> >(void)" (??1?$basic_ios@DU?$char_traits@D@__1@std@@@__1@std@@UAE@XZ)
1>libcef_dll_wrapper.lib(cef_logging.obj) : error LNK2001: unresolved external symbol "public: class std::__1::basic_ostream<char,struct std::__1::char_traits<char> > & __thiscall std::__1::basic_ostream<char,struct std::__1::char_traits<char> >::operator<<(unsigned long)" (??6?$basic_ostream@DU?$char_traits@D@__1@std@@@__1@std@@QAEAAV012@K@Z)
1>libcef_dll_wrapper.lib(cef_logging.obj) : error LNK2001: unresolved external symbol "public: class std::__1::basic_string<char,struct std::__1::char_traits<char>,class std::__1::allocator<char> > & __thiscall std::__1::basic_string<char,struct std::__1::char_traits<char>,class std::__1::allocator<char> >::erase(unsigned int,unsigned int)" (?erase@?$basic_string@DU?$char_traits@D@__1@std@@V?$allocator@D@23@@__1@std@@QAEAAV123@II@Z)
1>libcef_dll_wrapper.lib(cef_logging.obj) : error LNK2001: unresolved external symbol "public: virtual __thiscall std::__1::basic_iostream<char,struct std::__1::char_traits<char> >::~basic_iostream<char,struct std::__1::char_traits<char> >(void)" (??1?$basic_iostream@DU?$char_traits@D@__1@std@@@__1@std@@UAE@XZ)
1>libcef_dll_wrapper.lib(cef_zip_archive.obj) : error LNK2001: unresolved external symbol "protected: void __thiscall std::__1::__basic_string_common<1>::__throw_length_error(void)const " (?__throw_length_error@?$__basic_string_common@$00@__1@std@@IBEXXZ)
1>libcef_dll_wrapper.lib(cef_logging.obj) : error LNK2001: unresolved external symbol "protected: void __thiscall std::__1::__basic_string_common<1>::__throw_length_error(void)const " (?__throw_length_error@?$__basic_string_common@$00@__1@std@@IBEXXZ)
1>libcef_dll_wrapper.lib(cef_message_router.obj) : error LNK2001: unresolved external symbol "protected: void __thiscall std::__1::__basic_string_common<1>::__throw_length_error(void)const " (?__throw_length_error@?$__basic_string_common@$00@__1@std@@IBEXXZ)
1>libcef_dll_wrapper.lib(cef_resource_manager.obj) : error LNK2001: unresolved external symbol "protected: void __thiscall std::__1::__basic_string_common<1>::__throw_length_error(void)const " (?__throw_length_error@?$__basic_string_common@$00@__1@std@@IBEXXZ)
1>libcef_dll_wrapper.lib(cef_stream_resource_handler.obj) : error LNK2001: unresolved external symbol "protected: void __thiscall std::__1::__basic_string_common<1>::__throw_length_error(void)const " (?__throw_length_error@?$__basic_string_common@$00@__1@std@@IBEXXZ)
1>libcef_dll_wrapper.lib(cef_logging.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::__1::basic_string<char,struct std::__1::char_traits<char>,class std::__1::allocator<char> >::push_back(char)" (?push_back@?$basic_string@DU?$char_traits@D@__1@std@@V?$allocator@D@23@@__1@std@@QAEXD@Z)
1>libcef_dll_wrapper.lib(cef_resource_manager.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::__1::basic_string<char,struct std::__1::char_traits<char>,class std::__1::allocator<char> >::push_back(char)" (?push_back@?$basic_string@DU?$char_traits@D@__1@std@@V?$allocator@D@23@@__1@std@@QAEXD@Z)
1>libcef_dll_wrapper.lib(cef_logging.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::__1::basic_string<char,struct std::__1::char_traits<char>,class std::__1::allocator<char> >::resize(unsigned int,char)" (?resize@?$basic_string@DU?$char_traits@D@__1@std@@V?$allocator@D@23@@__1@std@@QAEXID@Z)
1>libcef_dll_wrapper.lib(cef_logging.obj) : error LNK2001: unresolved external symbol "public: class std::__1::basic_ostream<char,struct std::__1::char_traits<char> > & __thiscall std::__1::basic_ostream<char,struct std::__1::char_traits<char> >::flush(void)" (?flush@?$basic_ostream@DU?$char_traits@D@__1@std@@@__1@std@@QAEAAV123@XZ)
1>libcef_dll_wrapper.lib(cef_resource_manager.obj) : error LNK2001: unresolved external symbol "public: class std::__1::basic_ostream<char,struct std::__1::char_traits<char> > & __thiscall std::__1::basic_ostream<char,struct std::__1::char_traits<char> >::flush(void)" (?flush@?$basic_ostream@DU?$char_traits@D@__1@std@@@__1@std@@QAEAAV123@XZ)
1>libcef_dll_wrapper.lib(cef_logging.obj) : error LNK2001: unresolved external symbol "public: class std::__1::locale __thiscall std::__1::ios_base::getloc(void)const " (?getloc@ios_base@__1@std@@QBE?AVlocale@23@XZ)
1>libcef_dll_wrapper.lib(cef_resource_manager.obj) : error LNK2001: unresolved external symbol "public: class std::__1::locale __thiscall std::__1::ios_base::getloc(void)const " (?getloc@ios_base@__1@std@@QBE?AVlocale@23@XZ)
1>libcef_dll_wrapper.lib(cef_logging.obj) : error LNK2001: unresolved external symbol "public: static class std::__1::locale::id std::__1::ctype<char>::id" (?id@?$ctype@D@__1@std@@2V0locale@23@A)
1>libcef_dll_wrapper.lib(cef_resource_manager.obj) : error LNK2001: unresolved external symbol "public: static class std::__1::locale::id std::__1::ctype<char>::id" (?id@?$ctype@D@__1@std@@2V0locale@23@A)
1>libcef_dll_wrapper.lib(cef_logging.obj) : error LNK2001: unresolved external symbol "private: class std::__1::locale::facet const * __thiscall std::__1::locale::use_facet(class std::__1::locale::id &)const " (?use_facet@locale@__1@std@@ABEPBVfacet@123@AAVid@123@@Z)
1>libcef_dll_wrapper.lib(cef_resource_manager.obj) : error LNK2001: unresolved external symbol "private: class std::__1::locale::facet const * __thiscall std::__1::locale::use_facet(class std::__1::locale::id &)const " (?use_facet@locale@__1@std@@ABEPBVfacet@123@AAVid@123@@Z)
1>libcef_dll_wrapper.lib(cef_logging.obj) : error LNK2001: unresolved external symbol "public: __thiscall std::__1::locale::~locale(void)" (??1locale@__1@std@@QAE@XZ)
1>libcef_dll_wrapper.lib(cef_resource_manager.obj) : error LNK2001: unresolved external symbol "public: __thiscall std::__1::locale::~locale(void)" (??1locale@__1@std@@QAE@XZ)
1>libcef_dll_wrapper.lib(cef_logging.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::__1::ios_base::clear(unsigned int)" (?clear@ios_base@__1@std@@QAEXI@Z)
1>libcef_dll_wrapper.lib(cef_resource_manager.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::__1::ios_base::clear(unsigned int)" (?clear@ios_base@__1@std@@QAEXI@Z)
1>libcef_dll_wrapper.lib(cef_logging.obj) : error LNK2001: unresolved external symbol "public: virtual __thiscall std::__1::basic_istream<char,struct std::__1::char_traits<char> >::~basic_istream<char,struct std::__1::char_traits<char> >(void)" (??1?$basic_istream@DU?$char_traits@D@__1@std@@@__1@std@@UAE@XZ)
1>libcef_dll_wrapper.lib(cef_logging.obj) : error LNK2001: unresolved external symbol "protected: virtual void __thiscall std::__1::basic_streambuf<char,struct std::__1::char_traits<char> >::imbue(class std::__1::locale const &)" (?imbue@?$basic_streambuf@DU?$char_traits@D@__1@std@@@__1@std@@MAEXABVlocale@23@@Z)
1>libcef_dll_wrapper.lib(cef_logging.obj) : error LNK2001: unresolved external symbol "protected: virtual class std::__1::basic_streambuf<char,struct std::__1::char_traits<char> > * __thiscall std::__1::basic_streambuf<char,struct std::__1::char_traits<char> >::setbuf(char *,int)" (?setbuf@?$basic_streambuf@DU?$char_traits@D@__1@std@@@__1@std@@MAEPAV123@PADH@Z)
1>libcef_dll_wrapper.lib(cef_logging.obj) : error LNK2001: unresolved external symbol "protected: virtual int __thiscall std::__1::basic_streambuf<char,struct std::__1::char_traits<char> >::sync(void)" (?sync@?$basic_streambuf@DU?$char_traits@D@__1@std@@@__1@std@@MAEHXZ)
1>libcef_dll_wrapper.lib(cef_logging.obj) : error LNK2001: unresolved external symbol "protected: virtual int __thiscall std::__1::basic_streambuf<char,struct std::__1::char_traits<char> >::showmanyc(void)" (?showmanyc@?$basic_streambuf@DU?$char_traits@D@__1@std@@@__1@std@@MAEHXZ)
1>libcef_dll_wrapper.lib(cef_logging.obj) : error LNK2001: unresolved external symbol "protected: virtual int __thiscall std::__1::basic_streambuf<char,struct std::__1::char_traits<char> >::xsgetn(char *,int)" (?xsgetn@?$basic_streambuf@DU?$char_traits@D@__1@std@@@__1@std@@MAEHPADH@Z)
1>libcef_dll_wrapper.lib(cef_logging.obj) : error LNK2001: unresolved external symbol "protected: virtual int __thiscall std::__1::basic_streambuf<char,struct std::__1::char_traits<char> >::uflow(void)" (?uflow@?$basic_streambuf@DU?$char_traits@D@__1@std@@@__1@std@@MAEHXZ)
1>libcef_dll_wrapper.lib(cef_logging.obj) : error LNK2001: unresolved external symbol "protected: virtual int __thiscall std::__1::basic_streambuf<char,struct std::__1::char_traits<char> >::xsputn(char const *,int)" (?xsputn@?$basic_streambuf@DU?$char_traits@D@__1@std@@@__1@std@@MAEHPBDH@Z)
1>libcef_dll_wrapper.lib(cef_message_router.obj) : error LNK2001: unresolved external symbol "public: class std::__1::basic_string<char,struct std::__1::char_traits<char>,class std::__1::allocator<char> > & __thiscall std::__1::basic_string<char,struct std::__1::char_traits<char>,class std::__1::allocator<char> >::append(char const *)" (?append@?$basic_string@DU?$char_traits@D@__1@std@@V?$allocator@D@23@@__1@std@@QAEAAV123@PBD@Z)
1>libcef_dll_wrapper.lib(cef_message_router.obj) : error LNK2001: unresolved external symbol "public: class std::__1::basic_string<char,struct std::__1::char_traits<char>,class std::__1::allocator<char> > & __thiscall std::__1::basic_string<char,struct std::__1::char_traits<char>,class std::__1::allocator<char> >::insert(unsigned int,char const *)" (?insert@?$basic_string@DU?$char_traits@D@__1@std@@V?$allocator@D@23@@__1@std@@QAEAAV123@IPBD@Z)
1>libcef_dll_wrapper.lib(request_handler_cpptoc.obj) : error LNK2001: unresolved external symbol "protected: void __thiscall std::__1::__vector_base_common<1>::__throw_length_error(void)const " (?__throw_length_error@?$__vector_base_common@$00@__1@std@@IBEXXZ)
1>libcef_dll_wrapper.lib(post_data_ctocpp.obj) : error LNK2001: unresolved external symbol "protected: void __thiscall std::__1::__vector_base_common<1>::__throw_length_error(void)const " (?__throw_length_error@?$__vector_base_common@$00@__1@std@@IBEXXZ)
1>libcef_dll_wrapper.lib(x509certificate_ctocpp.obj) : error LNK2001: unresolved external symbol "protected: void __thiscall std::__1::__vector_base_common<1>::__throw_length_error(void)const " (?__throw_length_error@?$__vector_base_common@$00@__1@std@@IBEXXZ)
1>libcef_dll_wrapper.lib(print_settings_ctocpp.obj) : error LNK2001: unresolved external symbol "protected: void __thiscall std::__1::__vector_base_common<1>::__throw_length_error(void)const " (?__throw_length_error@?$__vector_base_common@$00@__1@std@@IBEXXZ)
1>libcef_dll_wrapper.lib(browser_ctocpp.obj) : error LNK2001: unresolved external symbol "protected: void __thiscall std::__1::__vector_base_common<1>::__throw_length_error(void)const " (?__throw_length_error@?$__vector_base_common@$00@__1@std@@IBEXXZ)
1>libcef_dll_wrapper.lib(media_observer_cpptoc.obj) : error LNK2001: unresolved external symbol "protected: void __thiscall std::__1::__vector_base_common<1>::__throw_length_error(void)const " (?__throw_length_error@?$__vector_base_common@$00@__1@std@@IBEXXZ)
1>libcef_dll_wrapper.lib(drag_handler_cpptoc.obj) : error LNK2001: unresolved external symbol "protected: void __thiscall std::__1::__vector_base_common<1>::__throw_length_error(void)const " (?__throw_length_error@?$__vector_base_common@$00@__1@std@@IBEXXZ)
1>libcef_dll_wrapper.lib(render_handler_cpptoc.obj) : error LNK2001: unresolved external symbol "protected: void __thiscall std::__1::__vector_base_common<1>::__throw_length_error(void)const " (?__throw_length_error@?$__vector_base_common@$00@__1@std@@IBEXXZ)
1>libcef_dll_wrapper.lib(cef_message_router.obj) : error LNK2001: unresolved external symbol "protected: void __thiscall std::__1::__vector_base_common<1>::__throw_length_error(void)const " (?__throw_length_error@?$__vector_base_common@$00@__1@std@@IBEXXZ)
1>libcef_dll_wrapper.lib(cef_resource_manager.obj) : error LNK2001: unresolved external symbol "protected: void __thiscall std::__1::__vector_base_common<1>::__throw_length_error(void)const " (?__throw_length_error@?$__vector_base_common@$00@__1@std@@IBEXXZ)
1>libcef_dll_wrapper.lib(transfer_util.obj) : error LNK2001: unresolved external symbol "protected: void __thiscall std::__1::__vector_base_common<1>::__throw_length_error(void)const " (?__throw_length_error@?$__vector_base_common@$00@__1@std@@IBEXXZ)
1>libcef_dll_wrapper.lib(v8handler_cpptoc.obj) : error LNK2001: unresolved external symbol "protected: void __thiscall std::__1::__vector_base_common<1>::__throw_length_error(void)const " (?__throw_length_error@?$__vector_base_common@$00@__1@std@@IBEXXZ)
1>libcef_dll_wrapper.lib(cef_resource_manager.obj) : error LNK2001: unresolved external symbol "public: __thiscall std::__1::basic_string<char,struct std::__1::char_traits<char>,class std::__1::allocator<char> >::basic_string<char,struct std::__1::char_traits<char>,class std::__1::allocator<char> >(class std::__1::basic_string<char,struct std::__1::char_traits<char>,class std::__1::allocator<char> > const &)" (??0?$basic_string@DU?$char_traits@D@__1@std@@V?$allocator@D@23@@__1@std@@QAE@ABV012@@Z)
1>libcef_dll_wrapper.lib(cef_resource_manager.obj) : error LNK2001: unresolved external symbol "public: __thiscall std::__1::basic_string<char,struct std::__1::char_traits<char>,class std::__1::allocator<char> >::basic_string<char,struct std::__1::char_traits<char>,class std::__1::allocator<char> >(class std::__1::basic_string<char,struct std::__1::char_traits<char>,class std::__1::allocator<char> > const &,unsigned int,unsigned int,class std::__1::allocator<char> const &)" (??0?$basic_string@DU?$char_traits@D@__1@std@@V?$allocator@D@23@@__1@std@@QAE@ABV012@IIABV?$allocator@D@12@@Z)
1>libcef_dll_wrapper.lib(cef_resource_manager.obj) : error LNK2001: unresolved external symbol "public: unsigned int __thiscall std::__1::basic_string<char,struct std::__1::char_traits<char>,class std::__1::allocator<char> >::find(char,unsigned int)const " (?find@?$basic_string@DU?$char_traits@D@__1@std@@V?$allocator@D@23@@__1@std@@QBEIDI@Z)
1>libcef_dll_wrapper.lib(cef_resource_manager.obj) : error LNK2001: unresolved external symbol "public: class std::__1::basic_string<char,struct std::__1::char_traits<char>,class std::__1::allocator<char> > & __thiscall std::__1::basic_string<char,struct std::__1::char_traits<char>,class std::__1::allocator<char> >::append(char const *,unsigned int)" (?append@?$basic_string@DU?$char_traits@D@__1@std@@V?$allocator@D@23@@__1@std@@QAEAAV123@PBDI@Z)
1>E:\MyBrowser\Src-87\Bin\MyBrowser.exe : fatal error LNK1120: 32 unresolved externals
MrGao
Newbie
 
Posts: 4
Joined: Mon Nov 23, 2020 1:06 am

Re: question for cef 87 version on windows

Postby magreenblatt » Wed Dec 02, 2020 11:47 pm

You need to create a binary distribution and build libcef_dll_wrapper from source code with the same configuration as your application. See https://bitbucket.org/chromiumembedded/ ... -packaging
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: question for cef 87 version on windows

Postby MrGao » Thu Dec 03, 2020 9:52 pm

magreenblatt wrote:You need to create a binary distribution and build libcef_dll_wrapper from source code with the same configuration as your application. See https://bitbucket.org/chromiumembedded/ ... -packaging

Thanks,I have successfuly build it on windows.
MrGao
Newbie
 
Posts: 4
Joined: Mon Nov 23, 2020 1:06 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 54 guests