I'm using VS 2005 w/ .Net Framework 2.0 SP1 for development. I just installed the latest MS Platform SDK, but noticed that the directory structure is different from the environment var path examples I've seen here in this forum. I believe I've set all the INCLUDE, PATH and LIB vars. Do I need to install earlier versions of the Platform SDK and the 2003 Visual C++ Toolkit?!? I was getting a cannot find "LIBC.lib" file which doesn't even need to be linked to the app, but I added /NODEFAULTLIB compiler option to celestia.mak. Now, the compiler seems to be whining about some unresolved symbols regarding Lua. I included the error output from NMAKE.
Appreciate any help!
Code: Select all
cd celutil
nmake /NOLOGO util.mak MFLAGS=-MD CFG=Release
'.\Release\cel_utils.lib' is up-to-date
cd ..
cd celmath
nmake /NOLOGO math.mak MFLAGS=-MD CFG=Release
'.\Release\cel_math.lib' is up-to-date
cd ..
cd cel3ds
nmake /NOLOGO 3ds.mak MFLAGS=-MD CFG=Release
'.\Release\cel_3ds.lib' is up-to-date
cd ..
cd celtxf
nmake /NOLOGO txf.mak MFLAGS=-MD CFG=Release
'.\Release\cel_txf.lib' is up-to-date
cd ..
cd celengine
nmake /NOLOGO engine.mak MFLAGS=-MD CFG=Release SPICE= CELX=enable LUA_VER=0x050100
'.\Release\cel_engine.lib' is up-to-date
cd ..
cd celestia
nmake /NOLOGO celestia.mak MFLAGS=-MD CFG=Release SPICE= CELX=enable LUA_VER=0x050100
link.exe @C:\DOCUME~1\THOR~1\LOCALS~1\Temp\nmD9.tmp
celx.obj : error LNK2019: unresolved external symbol _lua_newtable referenced in function "void __cdecl CreateClassMetatable(struct lua_State *,int)" (?CreateClassMetatable@@YAXPAUlua_State@@H@Z)
cel_engine.lib(scriptorbit.obj) : error LNK2001: unresolved external symbol _lua_newtable
cel_engine.lib(scriptrotation.obj) : error LNK2001: unresolved external symbol _lua_newtable
celx.obj : error LNK2019: unresolved external symbol _lua_open referenced in function "public: __thiscall LuaState::LuaState(void)" (??0LuaState@@QAE@XZ)
celx.obj : error LNK2019: unresolved external symbol _lua_tostring referenced in function "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall LuaState::getErrorMessage(void)" (?getErrorMessage@LuaState@@QAE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)
cel_engine.lib(scriptorbit.obj) : error LNK2001: unresolved external symbol _lua_tostring
cel_engine.lib(scriptrotation.obj) : error LNK2001: unresolved external symbol _lua_tostring
.\Release\celestia.exe : fatal error LNK1120: 3 unresolved externals