Hello,
I'm getting ~740 unresolved externals when creating ..\build\Debug\lib\libcef.dll and object ..\build\Debug\lib\libcef.exp, such as:
5>libcef_static.lib(context.obj) : error LNK2019: unresolved external symbol "void __cdecl content::InitializeSandboxInfo(struct sandbox::SandboxInterfaceInfo *)" (?InitializeSandboxInfo@content@@YAXPAUSandboxInterfaceInfo@sandbox@@@Z) referenced in function "int __cdecl CefExecuteProcess(class CefMainArgs const &,class CefRefPtr<class CefApp>,void *)" (?CefExecuteProcess@@YAHABVCefMainArgs@@V?$CefRefPtr@VCefApp@@@@PAX@Z)
5>libcef_static.lib(context.obj) : error LNK2019: unresolved external symbol "public: static class content::ContentMainRunner * __cdecl content::ContentMainRunner::Create(void)" (?Create@ContentMainRunner@content@@SAPAV12@XZ) referenced in function "public: bool __thiscall CefContext::Initialize(class CefMainArgs const &,class CefStructBase<struct CefSettingsTraits> const &,class CefRefPtr<class CefApp>,void *)" (?Initialize@CefContext@@QAE_NABVCefMainArgs@@ABV?$CefStructBase@UCefSettingsTraits@@@@V?$CefRefPtr@VCefApp@@@@PAX@Z)
After noticing that libcef_static.lib tries to statically link against content_app_both.vcxproj, I searched build\Debug\obj\content_app_both and build\Debug\ for content_app_both.lib, which wasn't found. I then looked at content_app_both.vcxproj, and found:
<PropertyGroup Label="Configuration">
<CharacterSet>Unicode</CharacterSet>
<ConfigurationType>Utility</ConfigurationType>
</PropertyGroup>
This differs from content\content.gyp, which specifies:
{
'target_name': 'content_app_both',
'type': 'static_library',
'variables': { 'enable_wexit_time_destructors': 1, },
'includes': [
'content_app.gypi',
],
'dependencies': [
'content_common',
],
},
content_app_both.vcxproj should have a configuration type of static_library after cef_create_projects.bat is run. However, it persists as utility. After manually editing content_app_both.vcxproj to produce a static library and individually building that project, content_app_both.lib did indeed appear in build\Debug. However, when trying to build the rest of cef.sln, the same linker errors showed up. I also tried deleting the content_app_both.vcxproj file and attempted to regenerate it with cef_create_projects.bat, but the content_app_both.vcxproj file that the script generated kept utility as its configuration type.
Has anyone else run into this issue before and have an idea how to fix it?
EDIT: I am using 1750 branch, revision 1601, and trying to build with Visual Studio 2010.