kink via digitalmars-d-ldc
digitalmars-d-ldc at puremagic.com
Wed Dec 14 03:34:21 PST 2016
On Wednesday, 14 December 2016 at 09:28:23 UTC, Soulsbane wrote:
> I have a problem when compiling a project that uses LuaD. I
> don't see any issues reported yet on LuaD's github so I'm not
> sure where the problem originates.
> Anyway I get this when linking:
> ../../../.dub/packages/luad-master/luad/.dub/build/library-release-linux.posix-x86_64-ldc_0-B1357DF9F0EC274CDA75A2B3B084BCDA/libluad.a(luad.state.o): In function `_D4luad5state8LuaState8openLibsMFNeZv':
> ../../../.dub/packages/luad-master/luad/luad/state.d:(.text._D4luad5state8LuaState8openLibsMFNeZv[_D4luad5state8LuaState8openLibsMFNeZv]+0xf): undefined reference to `luaL_openlibs'
> collect2: error: ld returned 1 exit status
> Everything works fine with DMD though.
Looks as if the Lua C library isn't passed to the linker. Please
check the command lines to figure out where the difference comes
from and then raise an issue.
More information about the digitalmars-d-ldc