[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: problem with compling c code with luaL functions
- From: "Wojciech L. J\eadruch" <dendro8@...>
- Date: Wed, 11 Mar 2009 12:26:54 +0100
Dnia 11 marca 2009 12:12 Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> napisał(a):
> > gcc -lm -llua test.o -o hello.out
>
> Try gcc test.o -lm -llua -o hello.out
>
changing makefile due to Yours advices gave me an errors:
gcc test.o -llua -lm -o hello.out
/usr/local/lib/liblua.a(loadlib.o): In function `ll_loadfunc':
loadlib.c:(.text+0x947): undefined reference to `dlsym'
loadlib.c:(.text+0x954): undefined reference to `dlerror'
loadlib.c:(.text+0xa2c): undefined reference to `dlopen'
loadlib.c:(.text+0xa41): undefined reference to `dlerror'
/usr/local/lib/liblua.a(loadlib.o): In function `gctm':
loadlib.c:(.text+0x104e): undefined reference to `dlclose'
collect2: ld returned 1 exit status
make: *** [hello.out]