• 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 Compiling: lua problem

Grehy

Killroy
Joined
Nov 21, 2008
Messages
2,631
Reaction score
33
Location
United States
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
 
Back
Top