GMAPI seems to be missing something...
1>Compiling...
1>main.cpp
1>Linking...
1> Creating library D:\Data\Source\C++\gmLua_GM81\Release\gmLua81.lib and object D:\Data\Source\C++\gmLua_GM81\Release\gmLua81.exp
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) char * __cdecl gm::newStr(unsigned int,unsigned short,unsigned short)" (__imp_?newStr@gm@@YAPADIGG@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) char * __cdecl gm::newStr(void const *,unsigned int,unsigned short,unsigned short)" (__imp_?newStr@gm@@YAPADPBXIGG@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl gm::shutdown(void)" (__imp_?shutdown@gm@@YAXXZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl gm::releaseStr(char const *)" (__imp_?releaseStr@gm@@YAXPBD@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) struct gm::Instance * __cdecl gm::getSelf(void)" (__imp_?getSelf@gm@@YAPAUInstance@1@XZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) struct gm::Instance * __cdecl gm::getOther(void)" (__imp_?getOther@gm@@YAPAUInstance@1@XZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl gm::strIncRef(char const *)" (__imp_?strIncRef@gm@@YAXPBD@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) void * * gm::functions" (__imp_?functions@gm@@3PAPAXA)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl gm::init(double)" (__imp_?init@gm@@YA_NN@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) class gm::Value __cdecl gm::docall(void *,struct gm::Instance *,struct gm::Instance *,unsigned int,class gm::Value *)" (__imp_?docall@gm@@YA?AVValue@1@PAXPAUInstance@1@1IPAV21@@Z)
1>D:\Data\Source\C++\gmLua_GM81\Release\gmLua81.dll : fatal error LNK1120: 10 unresolved externals
1>Build log was saved at "file://d:\Data\Source\C++\gmLua_GM81\gmLua\Release\BuildLog.htm"
I'm working on porting over gmLua to GM 8.1 and it was going great until I discovered the script_execute problem in 0.0.6. Saw you posted about it, so I downloaded, reinstalled, compiled. Disabled D3D, compiled. Compiled correctly into GMAPI.dll.
Relinked my gmLua C++ DLL with the new GMAPI 0.0.7 version, but it appears to be missing something... O.o
Edit: I'm an idiot. 3 seconds after posting this, I checked the Linker settings to discover that I had been including a misspelled gmapi-mt-d.lib rather than gmapi.lib. (When I compiled 0.0.6 that last time, I was using the -mt tag.)
Problem solved!
Edited by DFortun81, 13 October 2012 - 04:14 AM.