I have lua installed on a modifed 1.4a base on my local Cygwin running machine and it works brilliantly. I'm now moving it over to my hosting provider and they have installed Lua for me to use. (Lua command outputs: Lua 5.1.3 Copyright (C) 1994-2008 Lua.org, PUC-Rio)
I have all the needed .h files (lua.h, luaconf.h, lualib.h and lauxlib.h) and liblua.a installed locally within the src folder.
All the defines for the files within the lua*.c files are set as
My makefile has this
Here's the paths for the files (Remember, I have copies of these in the src also).
Now the problem is this. Upon compiling it goes all the way through to this stage and then dumps a lot of errors. Now as I recall this is a linking error and I can't for the life of me figure out what the problem is.
It does go on and on. I've tried various way's to link the files but I can't seem to wrap my head around it. Any ideas?
I have all the needed .h files (lua.h, luaconf.h, lualib.h and lauxlib.h) and liblua.a installed locally within the src folder.
All the defines for the files within the lua*.c files are set as
#include "lua.h"
My makefile has this
L_FLAGS = $(OPT_FLAG) $(PROF) $(SOLARIS_LINK) $(NEED_CRYPT) liblua.a -lm
Here's the paths for the files (Remember, I have copies of these in the src also).
lauxlib.h, lua.h, luaconf.h, lualib.h are all located in /usr/local/include/
liblua.a is located in /usr/local/lib/
Now the problem is this. Upon compiling it goes all the way through to this stage and then dumps a lot of errors. Now as I recall this is a linking error and I can't for the life of me figure out what the problem is.
gcc liblua.a -lm -o dwc act_comm.o act_info.o
act_move.o act_obj.o act_wiz.o ban.o boards.o build.o
clans.o color.o comm.o comments.o const.o db.o deity.o
dwc.o editor.o fight.o grub.o handler.o hashstr.o house.o
ibuild.o ident.o imm_host.o interp.o lua_bits.o
lua_scripting.o lua_tables.o magic.o makeobjs.o mapout.o
misc.o mpxset.o mud_comm.o mud_prog.o mt19937ar.o
new_auth.o overland.o planes.o player.o polymorph.o
requests.o reset.o save.o services.o sha256.o shops.o
skills.o smithing.o special.o stat_obj.o tables.o track.o
update.o
lua_scripting.o: In function `L_find_room':
/home/talairina/src/lua_scripting.c:137: undefined reference to `lua_isnumber'
/home/talairina/src/lua_scripting.c:139: undefined reference to `luaL_checknumber'
/home/talairina/src/lua_scripting.c:141: undefined reference to `luaL_error'
lua_scripting.o: In function `L_find_character':
/home/talairina/src/lua_scripting.c:180: undefined reference to `lua_type'
/home/talairina/src/lua_scripting.c:181: undefined reference to `lua_type'
/home/talairina/src/lua_scripting.c:186: undefined reference to `luaL_checkudata'
/home/talairina/src/lua_scripting.c:204: undefined reference to `luaL_error'
/home/talairina/src/lua_scripting.c:212: undefined reference to `lua_toboolean'
/home/talairina/src/lua_scripting.c:225: undefined reference to `luaL_checknumber'
/home/talairina/src/lua_scripting.c:238: undefined reference to `luaL_error'
/home/talairina/src/lua_scripting.c:251: undefined reference to `lua_toboolean'
/home/talairina/src/lua_scripting.c:268: undefined reference to `luaL_optlstring'
It does go on and on. I've tried various way's to link the files but I can't seem to wrap my head around it. Any ideas?