lua-users home
lua-l archive

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


Hello all,

 I am trying to link a up to the lua runtime. As you
can see in the errors below I am getting undefined
references to a few lua functions. This is a bit weird
because all of the undefined references point to
functions in lualib, it seems that the lua library is
linking in just fine. Now lualib exists and is in the
same dir (/usr/local/lib) as the lua library. So I am
really unsure as to why these errors occure. I
searched the archive and the only time I found a
similar problem the user was using C++ not C and he
forgot the extern C around the include for lua. This
cannot be my problem because I am using strait C. It
would be great if one of you could offer suggestions.
Btw, I am using Redhat 8.0 and Lua 5.0. I compiled
these myself via the standard make process.

Thanks,
Eric

-->

GSLuaInterp.o: In function `_i_GSLuaInterp__init':
GSLuaInterp.o(.text+0x17): undefined reference to
`lua_openbase'
GSLuaInterp.o(.text+0x22): undefined reference to
`lua_openio'
GSLuaInterp.o(.text+0x2d): undefined reference to
`lua_openmath'
GSLuaInterp.o(.text+0x38): undefined reference to
`lua_openstring'
GSLuaInterp.o: In function
`_i_GSLuaInterp__loadFile_':
GSLuaInterp.o(.text+0x81): undefined reference to
`lua_loadFile'
collect2: ld returned 1 exit status

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com