lua-users home
lua-l archive

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


On Mon, Jun 23, 2014 at 12:22:18 +0000, Bernd Eggink wrote:
> When I tried to compile Lua-SDL2-2.0.3-1 on 64-bit Linux, I got:
> 
> -----
> /usr/bin/ld: /usr/bin/liblua.a(lapi.o): relocation R_X86_64_32
> against `luaO_nilobject_' can not be used when making a shared
> object; recompile with -fPIC
> /usr/bin/liblua.a: could not read symbols: Bad value

Do not link against the .a, link against the .so

D.

-- 
Daniel Silverstone                         http://www.digital-scurf.org/
PGP mail accepted and encouraged.            Key Id: 3CCE BABE 206C 3B69