lua-users home
lua-l archive

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


Hi,

I want to keep my Lua uplication up-to-date and descided to use Lua
5.1(beta) now, instead of Lua 5.1-work5.

I have several shared C libraries that I load for usage. By now, I do
this using the loadlib function which disapperead in Lua 5.1(beta). If I
got it right, I have to use the require function to do this. So I set my
LUA_PATHs to the right directory and call reuqire.

But when loading the shared C library I get this failure report:

------------------- 8< ---------------------
lua: error loading module 'clib'
(/Users/kim/Documents/Studium/bachelor/trunk/clib/clib.so:1: unexpected
symbol near '?')
stack traceback:
        [C]: ?
        [C]: in function 'require'
        ...ocuments/Studium/bachelor/trunk/src_5.1/includes.lua:34: in
main chunk
        [C]: in function 'require'
        ...im/Documents/Studium/bachelor/trunk/src_5.1/main.lua:7: in
main chunk
        [C]: ?
------------------- >8 ---------------------

So my question is:

1) Do I have to use require instead of loadlib ?

2) If it is so, what further requirements do I have to consider?

3) What does this failure report mean and how can I solve my problem.

I did not found any hints on the in the web or in the mailing list, but
only the hint to use require instead of loadlib.


Thanks a lot guys!

cu
kim

-------------
Kim Herzig
Software Engineering Chair
Prof. Dr. Andreas Zeller
Software Engineering Chair (Prof. Zeller)
Saarland University, Dept. of Informatics