[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: Compiling/Executing problems in C
- From: Patrick Donnelly <batrick@...>
- Date: Mon, 9 Jul 2007 13:25:43 -0600
> On 7/9/07, Patrick Donnelly <firstname.lastname@example.org> 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.
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.
"One of the lessons of history is that nothing is often a good thing to do and always a clever thing to say."