Page 1 of 1

Help initialising the engine

PostPosted: Sun Jun 17, 2018 10:23 pm
by KirkFrederick
Hello I'm having trouble getting the engine running.

Code: Select all
AppInfo appInfo; = 'awesomewebfilter';
    appInfo.version = '0.1';
    appInfo.locale = 'en-US';

    JsEngine jsEngine(appInfo);

    auto filterEngine = FilterEngine::CreateAsync(jsEngine);

I get a couple of errors with this code.

error: no matching constructor for initialization of 'AdblockPlus::JsEngine'

I'm also having trouble with the second parameter of CreateAsync. Not sure what to put there.

Thanks for any help.