I'm trying to make an extremly basic test class. But I can't get it to link. I'm using Visual studio.net 2003 and the latest stable sqplus (squirrel 2.1.1 - sqplus 25)
I've made standard blank solution/project with a super small TestClass and a global function 'testFunc'. I'm trying mimic what is done in the testSqPlus2 project (which compiles and links well). But when I try to do this in a init method:
SquirrelVM::CreateFunctionGlobal(testFunc,_T("testFunc0"));
It results in a:
MySqTestLib error LNK2019: unresolved external symbol "public: static class SquirrelObject __cdecl SquirrelVM::CreateFunctionGlobal(int (__cdecl*)(struct SQVM *),char const *,char const *)" (?CreateFunctionGlobal@SquirrelVM@@SA?AVSquirrelObject@@P6AHPAUSQVM@@@ZPBD2@Z) referenced in function "public: void __thiscall TestClass::init(void)" (?init@TestClass@@QAEXXZ)
I've set up the squirrel/include and squirrel sqplus as header includes, and squirrel/lib as additional directories. Additional depencies are squirrelU, sqplusU and sqtdlibU. Sounded good to me. Before previously mentioned line, I tried to only do this in the init method:
SquirrelVM::Init();
Which links without a problem. So something is linking correctly. I just don't understand why it can't resolve the other symbols.