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?
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.