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)