#include <stdio.h>
#include <lua.h>
///////////////////////////////////////////////////////////////////////////////
#pragma comment(lib, "lualib.lib")
#pragma comment(lib, "lua.lib")
///////////////////////////////////////////////////////////////////////////////
int main(int argc, char** argv)
{
lua_State* lState = NULL;
lState = lua_open(100);
lua_close(lState);
return 0;
}
///////////////////////////////////////////////////////////////////////////////
--------------------Configuration: LUA_Test00 - Win32 Debug--------------------
Linking...
Main.obj : error LNK2001: unresolved external symbol "void __cdecl lua_close(struct lua_State *)" (?lua_close@@YAXPAUlua_State@@@Z)
Main.obj : error LNK2001: unresolved external symbol "struct lua_State * __cdecl lua_open(int)" (?lua_open@@YAPAUlua_State@@H@Z)
Output/LUA_Test00[d].exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
LUA_Test00[d].exe - 3 error(s), 0 warning(s)
http://MatrixCubed.cjb.net [edited by - MatrixCubed on October 24, 2002 2:59:09 AM]