🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Failed to start!

Started by
0 comments, last by WitchLord 10 years, 8 months ago

Hi,

I am using code::block and angelscript 2.27.1. Just now I tried to compile my app with the new release 2.28 and found the script is not creating the engine.


engine = asCreateScriptEngine(ANGELSCRIPT_VERSION);
if( engine == 0 )
{
    printf("Failed to create script engine.\n");
    return -1;
}

It is returning -1 here.

It is working fine with 2.27.

Thanks.

Advertisement

Make sure you recompile everything (both library and your application) after upgrading the library.

Basically the only reason asCreateScriptEngine() would fail is because the application is passing the the wrong version number, which usually happens if the project was only partially recompiled after the upgrade, or if the application and the library isn't using the same physical angelscript.h file.

Regards,

Andreas

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement