Talk:Adding Lua: Difference between revisions
Adam.gamedev (talk | contribs) No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
2>gameinterface.obj : error LNK2019: unresolved external symbol "class CGELUAManager * __cdecl GELua(void)" (?GELua@@YAPAVCGELUAManager@@XZ) referenced in function "public: virtual bool __thiscall CServerGameDLL::DLLInit(void * (__cdecl*)(char const *,int *),void * (__cdecl*)(char const *,int *),void * (__cdecl*)(char const *,int *),class CGlobalVars *)" (?DLLInit@CServerGameDLL@@UAE_NP6APAXPBDPAH@Z22PAVCGlobalVars@@@Z) | 2>gameinterface.obj : error LNK2019: unresolved external symbol "class CGELUAManager * __cdecl GELua(void)" (?GELua@@YAPAVCGELUAManager@@XZ) referenced in function "public: virtual bool __thiscall CServerGameDLL::DLLInit(void * (__cdecl*)(char const *,int *),void * (__cdecl*)(char const *,int *),void * (__cdecl*)(char const *,int *),class CGlobalVars *)" (?DLLInit@CServerGameDLL@@UAE_NP6APAXPBDPAH@Z22PAVCGlobalVars@@@Z) | ||
--[[User:Adam.gamedev|Adam.gamedev]] 14:44, 11 July 2010 (UTC) | --[[User:Adam.gamedev|Adam.gamedev]] 14:44, 11 July 2010 (UTC) | ||
== WRITING YOUR OWN LUA INSTANCE == | |||
Things seem straightfowardes but one problem is I dont know where to put any of the code after the first step especially creating the instance, I get errors when compiling when put into gameinterface.cpp. Is it supposed to be there and im just doing it wrong or is it supposed to be somewhere else entirely? | |||
--[[User:skarano|skarano]] 11:32, 29 June 2024 (PST) |
Revision as of 11:33, 29 June 2024
Some discussion: http://www.moddb.com/forum/thread/source-adding-lua
LNK2019
When I Build my mod (Debug), I get this error:
2>gameinterface.obj : error LNK2019: unresolved external symbol "class CGELUAManager * __cdecl GELua(void)" (?GELua@@YAPAVCGELUAManager@@XZ) referenced in function "public: virtual bool __thiscall CServerGameDLL::DLLInit(void * (__cdecl*)(char const *,int *),void * (__cdecl*)(char const *,int *),void * (__cdecl*)(char const *,int *),class CGlobalVars *)" (?DLLInit@CServerGameDLL@@UAE_NP6APAXPBDPAH@Z22PAVCGlobalVars@@@Z) --Adam.gamedev 14:44, 11 July 2010 (UTC)
WRITING YOUR OWN LUA INSTANCE
Things seem straightfowardes but one problem is I dont know where to put any of the code after the first step especially creating the instance, I get errors when compiling when put into gameinterface.cpp. Is it supposed to be there and im just doing it wrong or is it supposed to be somewhere else entirely? --skarano 11:32, 29 June 2024 (PST)