lua-users home
lua-l archive

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



> > I only have lua5.1 installed. Never had lua5.0. As I understand it, I am
> > using lua5.1 headers? PIL says the program should work for 5.1, I just had
> > to change how I opened the libraries, which I did.
> >
>
> If it's the PiL online, it's for Lua 5.0.
>
> Cheers,
> --
> -alex
> http://www.ventonegro.org/

PIL says the program works with lua 5.1 with minor adjustments (all of them I made). http://www.lua.org/pil/24.1.html (Read the red warning)

I have no liblua51.a on my system. I only have liblua.a inside /usr/local/lib. I also want to make it clear I never had lua5.0 on this system. I just installed lua5.1.2 today!

When I do `gcc mytest.c /usr/local/lib/liblua.a` I get link errors (mostly math functions) such as:

/usr/local/lib/liblua.a(lmathlib.o): In function `math_acos':
lmathlib.c:(.text+0x85e): undefined reference to `acos'
/usr/local/lib/liblua.a(loadlib.o): In function `ll_loadfunc':
loadlib.c:(.text+0x937): undefined reference to `dlsym'

-Patrick Donnelly

"One of the lessons of history is that nothing is often a good thing to do and always a clever thing to say."

-Will Durant