lua-users home
lua-l archive

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




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]