PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

LUA integration, compiler error...ok I admit it, I need help

I am testing with integrating the LUA scripting engine into an application, but all I get is this when compiling:

script.obj : error LNK2001: unresolved external symbol "struct lua_State * __cdecl lua_open(int)" (?lua_open@@YAPAUlua_State@@H@Z)

What could be wrong. The linked doesn't find the compiled lua objs? What should I do?
Did you try wrapping all the function declarations you're trying to import with extern "C"?
Code:

extern "C" {
void something();
void somethingelse();
};


Dan East
Thanks...I didn't know that...