Advertisement

Including library files in project no longer works

Started by May 18, 2012 08:36 PM
3 comments, last by TechRogue 12 years, 6 months ago
Ever since upgrading to Angelscript 2.23.1, trying to register entity behavior or methods fails if I compile the library into my project. Here's the first line that gives me trouble:


int r = engine->RegisterObjectBehaviour(name.c_str(), asBEHAVE_ADDREF, "void f()", asMETHOD(T, addref), asCALL_THISCALL); assert(r >= 0);


This code works fine as long as I'm linking to the static library. Any ideas, anyone?
Which error does it give you?
Advertisement
r is set to -7, for the example line. Is that what you mean?
That's the error value for not supported. Is the version of AngelScript you're using compiled for the native calling convention?
In order to answer your question I went and looked around in the static library Codeblocks project and found some global macro definitions that I hadn't added to my project, specifically 'i386'. Problem solved. Thanks for helping out.

This topic is closed to new replies.

Advertisement