Error with libcef_dll_wrapper (built as'RuntimeLibrary' : 3)

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.

Error with libcef_dll_wrapper (built as'RuntimeLibrary' : 3)

Postby tuma » Thu Jul 23, 2015 10:39 pm

I am getting below linker error with libcef_dll_wrapper (CEF 2357 - Windows - 64 bit - ninja build). I am compiling my application with /MDd (Multi-threaded Debug DLL - Debug) and /MD (Multi-threaded DLL - Release) flag. My dependent dlls are built with same flags.

No issues with my Release build. I didn't face this issue with CEF 1650.

cef.gyp file settings for target libcef_dll_wrapper.
['OS=="win"', {
'configurations': {
'Release_Base': {
'msvs_settings': {
VCCLCompilerTool' : {
'RuntimeLibrary' : 2
},
},
},
'Debug_Base': {
'msvs_settings': {
'VCCLCompilerTool' : {
'RuntimeLibrary' : 3
},
},
},

2>libcef_dll_wrapper.lib(libcef_dll_wrapper.cef_logging.obj) : error LNK2005:
"public: __cdecl std::_String_val<struct std::_Simple_types<wchar_t> >::_String_val<struct std::_Simple_types<wchar_t> >(void)" (??0?$_String_val@U?$_Simple_types@_W@std@@@std@@QEAA@XZ) already defined in adserv.lib(adserv.dll)

2>libcef_dll_wrapper.lib(libcef_dll_wrapper.cef_logging.obj) : error LNK2005:
"public: __cdecl std::_String_val<struct std::_Simple_types<wchar_t> >::~_String_val<struct std::_Simple_types<wchar_t> >(void)" (??1?$_String_val@U?$_Simple_types@_W@std@@@std@@QEAA@XZ) already defined in adserv.lib(adserv.dll)

2>libcef_dll_wrapper.lib(libcef_dll_wrapper.cef_logging.obj) : error LNK2005:
"public: wchar_t * __cdecl std::_String_val<struct std::_Simple_types<wchar_t> >::_Myptr(void)" (?_Myptr@?$_String_val@U?$_Simple_types@_W@std@@@std@@QEAAPEA_WXZ) already defined in adserv.lib(adserv.dll)

2>libcef_dll_wrapper.lib(libcef_dll_wrapper.cef_logging.obj) : error LNK2005:
"public: wchar_t const * __cdecl std::_String_val<struct std::_Simple_types<wchar_t> >::_Myptr(void)const " (?_Myptr@?$_String_val@U?$_Simple_types@_W@std@@@std@@QEBAPEB_WXZ) already defined in adserv.lib(adserv.dll)
- tumapathy
tuma
Techie
 
Posts: 37
Joined: Fri May 11, 2012 3:26 am

Re: Error with libcef_dll_wrapper (built as'RuntimeLibrary'

Postby magreenblatt » Fri Jul 24, 2015 11:21 am

tuma wrote: I am compiling my application with /MDd (Multi-threaded Debug DLL - Debug) and /MD (Multi-threaded DLL - Release) flag. My dependent dlls are built with same flags.

Are you building with Visual Studio? If so, did you verify in the IDE that the libcef_dll_wrapper target has these same settings?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: Majestic-12 [Bot] and 77 guests