lua-users home
lua-l archive

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


> On 7/9/07, Patrick Donnelly <batrick@hotmail.com> wrote:
> > Ya I knew there was a linking problem, but even when I use `gcc mytest.c
> > /usr/local/lib/liblua.a` I get a mountain of other linking errors. Is it
> > because I'm not using liblua51.a?
>
> Use the 5.0 headers with the 5.0 library. Use the 5.1 headers with
> the 5.1 library. They are not compatible. This is true in general
> for other libraries.
>
> -Mark

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.

Why does `gcc mytest.c -shared` work? I get segmentation faults when I run it.

-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