Grehy
Killroy
Mighty Goober said: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.
Code:[COLOR="Black"]luaState = lua_open();[/COLOR] [COLOR="Red"]luaopen_loadlib(luaState);[/COLOR]//luaopen_loadlib was not declared in this scope [COLOR="Black"]luaopen_base(luaState); luaopen_math(luaState); luaopen_string(luaState); luaopen_io(luaState);[/COLOR] [COLOR="Red"]lua_dofile(luaState, std::string(datadir + "actions/lib/actions.lua").c_str());[/COLOR]//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?
And this is YurOTS 9.4F btw