GOD Darkness
Dark OT 8.42 Released!
- Joined
- Feb 3, 2010
- Messages
- 1
- Reaction score
- 0
I'm trying to set up my Code::Blocks environment for the first time to compile lua code that has been written in my server distro.
Does anyone else find it weird that only a few lua functions give errors and the rest don't?
What have I forgotten to include, compile, link, reference, ect?
Code:
luaState = lua_open();
luaopen_loadlib(luaState);//luaopen_loadlib was not declared in this scope
luaopen_base(luaState);
luaopen_math(luaState);
luaopen_string(luaState);
luaopen_io(luaState);
lua_dofile(luaState, std::string(datadir + "actions/lib/actions.lua").c_str());//lua_dofile was not declared in this scope
Does anyone else find it weird that only a few lua functions give errors and the rest don't?
What have I forgotten to include, compile, link, reference, ect?