• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling: Lua Problem

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.

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?
 
Back
Top