I've followed a few tutorials, but none in my particular IDE or on my OS.
I can open the interpreter fine.. I have issues when I try to actually use the interpreter. Errors like this..
/home/cody/luatest.cpp|12|error: ‘lua_openlibs’ was not declared in this scope|
here is my code::
extern "C" {
#include "lua5.1/lua.h"
#include "lua5.1/lauxlib.h"
#include "lua5.1/lualib.h"
}
#include <stdio.h>
int main(int argc, char* argv[ ])
{
lua_State* lua = lua_open();
lua_openlibs(lua);
return 0;
}
I'm only linking lua5.1 which is probably part of the problem. I could possibly be missing a header file also.
Thanks guys