I'm trying to getting started with CEF and now I'm stucked. I know that here were several same threads like mine on that forum, but I tried everything (except building CEF from sources) and still getting the same error.
I already have tried two binary versions of CEF:
https://cef-builds.spotifycdn.com/index.html#windows64 and https://cef-builds.spotifycdn.com/index.html#windows32. x64 version builds each target fine, while x32 fails on cefsimple, but successfuly builds libcef_dll_wrapper. (both cef_binary_90.5.9+gd330790+chromium-90.0.4430.85)
On x64 binary it builds cefsimple fine, but once I move libcef_dll_wrapper.lib to my application includes folder, it fails with this message:
- Code: Select all
Ошибка LNK2019 ссылка на неразрешенный внешний символ "bool __cdecl CefInitialize(class CefMainArgs const &,class CefStructBase<struct CefSettingsTraits> const &,class scoped_refptr<class CefApp>,void *)" (?CefInitialize@@YA_NABVCefMainArgs@@ABV?$CefStructBase@UCefSettingsTraits@@@@V?$scoped_refptr@VCefApp@@@@PAX@Z) в функции _main. ConsoleApplication1 C:\Users\Юзер\source\repos\ConsoleApplication1\ConsoleApplication1\ConsoleApplication1.obj 1
I have tried to use absolutely empty project:
- Code: Select all
#include <iostream>
#include "include/cef_app.h"
using namespace std;
#pragma comment(lib, "../../include/libcef.lib")
#pragma comment(lib, "../../include/libcef_dll_wrapper.lib")
int main()
{
CefMainArgs args;
CefSettings settings;
CefInitialize(args, settings, nullptr, nullptr);
}
and it still throws exception on CefInitialize as above one.
Can you please tell me where I'm wrong? I spent on it the day, but nothing worked
Will appreciate any help!