Unresolved symbols when building VS 2013

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

Unresolved symbols when building VS 2013

Postby SomeCoder » Wed Mar 02, 2016 4:59 pm

I can compile the CEF examples in VS 2013 without problems. I have run:

Code: Select all
cmake.exe -G "Visual Studio 12 Win64"


which properly gives me the solutions and they build just fine. I can easily build the SimpleApp example.

However when I try to compile anything inside of my own project (that I want to use CEF in) I get the following errors (just a sample is below):

Code: Select all
Error   218   error LNK2001: unresolved external symbol "public: __cdecl cef::logging::LogMessage::~LogMessage(void)" (??1LogMessage@logging@cef@@QEAA@XZ)   C:\Code\trunk\jrengineering\player\newplayer\mediaPlayer\JRBrowserHandler.obj   mediaPlayer
Error   219   error LNK2001: unresolved external symbol "public: __cdecl cef::logging::LogMessage::~LogMessage(void)" (??1LogMessage@logging@cef@@QEAA@XZ)   C:\Code\trunk\jrengineering\player\newplayer\mediaPlayer\WindowSDL.obj   mediaPlayer
Error   215   error LNK2001: unresolved external symbol "public: __cdecl cef::logging::LogMessage::LogMessage(char const *,int,int)" (??0LogMessage@logging@cef@@QEAA@PEBDHH@Z)   C:\Code\trunk\jrengineering\player\newplayer\mediaPlayer\JRBrowserHandler.obj   mediaPlayer
Error   216   error LNK2001: unresolved external symbol "public: __cdecl cef::logging::LogMessage::LogMessage(char const *,int,int)" (??0LogMessage@logging@cef@@QEAA@PEBDHH@Z)   C:\Code\trunk\jrengineering\player\newplayer\mediaPlayer\WindowSDL.obj   mediaPlayer
Error   232   error LNK2001: unresolved external symbol __imp_cef_build_revision   C:\Code\trunk\jrengineering\player\newplayer\mediaPlayer\libcef_dll_wrapper.lib(command_line_ctocpp.obj)   mediaPlayer
Error   160   error LNK2005: "private: static class std::locale::_Locimp * __cdecl std::locale::_Getgloballocale(void)" (?_Getgloballocale@locale@std@@CAPEAV_Locimp@12@XZ) already defined in msvcprtd.lib(MSVCP120D.dll)   C:\Code\trunk\jrengineering\player\newplayer\mediaPlayer\libcpmt.lib(locale0.obj)   mediaPlayer
Error   161   error LNK2005: "private: static class std::locale::_Locimp * __cdecl std::locale::_Init(bool)" (?_Init@locale@std@@CAPEAV_Locimp@12@_N@Z) already defined in msvcprtd.lib(MSVCP120D.dll)   C:\Code\trunk\jrengineering\player\newplayer\mediaPlayer\libcpmt.lib(locale0.obj)   mediaPlayer
Error   156   error LNK2005: "private: static void __cdecl std::ios_base::_Ios_base_dtor(class std::ios_base *)" (?_Ios_base_dtor@ios_base@std@@CAXPEAV12@@Z) already defined in msvcprtd.lib(MSVCP120D.dll)   C:\Code\trunk\jrengineering\player\newplayer\mediaPlayer\libcpmt.lib(ios.obj)   mediaPlayer


There are many, MANY more linker errors. I have tried adding different libs in different orders, I tried putting the cef wrapper lib inside of my solution and added a reference to it... nothing works.

I've looked at forum posts like viewtopic.php?f=10&t=12990 and http://stackoverflow.com/questions/1906 ... nking-cef3 and neither solved my problem.

Any advice on this?
SomeCoder
Newbie
 
Posts: 1
Joined: Wed Mar 02, 2016 4:54 pm

Re: Unresolved symbols when building VS 2013

Postby Mayhew » Thu Mar 03, 2016 4:12 pm

One place to start is by comparing the project settings between cefclient and your project. You are likely missing some linker paths, include paths, etc.
Mayhew
Expert
 
Posts: 303
Joined: Mon Apr 18, 2011 8:02 pm


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 40 guests