lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Dear All,

 

We are unable to build a test application( executable ) using Lua library.

 

Steps followed.

 

1.       We have built Lua libraries( as shared library) using source code of Lua 5.1.4 in HP-UX(hpux B.11.31 U ia64 2793073630 unlimited-user license) environment.( Makefile is attached herewith )

2.       We have a test application( executable) that will call Lua functions to test the Lua binary.

3.       We are trying to build that test application(sample files are attached as sample.zip) that shows following error during linking

 

Output:

=================================================

bash-4.0$

bash-4.0$ compile.sh

main.cpp:

object.cpp:

luaobject.cpp:

ld: Unsatisfied symbol "lua_newuserdata" in file main.o

ld: Unsatisfied symbol "lua_pushlstring" in file main.o

ld: Unsatisfied symbol "lua_pushfstring" in file main.o

ld: Unsatisfied symbol "lua_createtable" in file main.o

ld: Unsatisfied symbol "luaL_newstate" in file main.o

ld: Unsatisfied symbol "lua_tolstring" in file luaobject.o

ld: Unsatisfied symbol "luaL_loadfile" in file main.o

ld: Unsatisfied symbol "lua_pushcclosure" in file main.o

ld: Unsatisfied symbol "lua_settable" in file main.o

ld: Unsatisfied symbol "luaL_newmetatable" in file main.o

ld: Unsatisfied symbol "lua_remove" in file main.o

ld: Unsatisfied symbol "lua_setmetatable" in file main.o

ld: Unsatisfied symbol "lua_pushstring" in file main.o

ld: Unsatisfied symbol "lua_touserdata" in file main.o

ld: Unsatisfied symbol "luaL_checkudata" in file main.o

ld: Unsatisfied symbol "lua_pushnumber" in file luaobject.o

ld: Unsatisfied symbol "lua_close" in file main.o

ld: Unsatisfied symbol "luaL_typerror" in file main.o

ld: Unsatisfied symbol "luaL_checknumber" in file luaobject.o

ld: Unsatisfied symbol "lua_pcall" in file main.o

ld: Unsatisfied symbol "lua_pushlightuserdata" in file main.o

ld: Unsatisfied symbol "luaL_openlibs" in file main.o

ld: Unsatisfied symbol "lua_pushvalue" in file main.o

ld: Unsatisfied symbol "lua_gettop" in file main.o

ld: Unsatisfied symbol "lua_settop" in file main.o

ld: Unsatisfied symbol "lua_setfield" in file main.o

ld: Unsatisfied symbol "lua_getfield" in file main.o

27 errors.

bash-4.0$

 

 

This is an urgent requirement. Waiting for your prompt reply………..

 

Regards,

 

Bidyut

 

 

Attachment: Makefile
Description: Makefile

Attachment: Sample.zip
Description: Sample.zip