LuaD linker problems using dub
Soulsbane
paul at acheronsoft.com
Sun Feb 23 17:19:43 PST 2014
Using dub I get the following:
dub build --build=release
luad: ["luad"]
luadubtest: ["luadubtest", "luad"]
Target is up to date. Using existing build in
/home/soulsbane/.dub/packages/luad-master/.dub/build/library-release-linux.posix-x86_64-dmd-B83FCD49839968DA975DFE86E5A741A0/.
Use --force to force a rebuild.
Building luadubtest configuration "application", build type
release.
Compiling...
Linking...
.dub/build/application-release-linux.posix-x86_64-dmd-4FF98A30FE312568645DD3AB88D46B00/luadubtest.o:(.data._D30TypeInfo_S4luad4base9LuaObject6__initZ+0x38):
undefined reference to
`_D4luad4base9LuaObject11__xopEqualsFKxS4luad4base9LuaObjectKxS4luad4base9LuaObjectZb'
collect2: error: ld returned 1 exit status
--- errorlevel 1
FAIL
.dub/build/application-release-linux.posix-x86_64-dmd-4FF98A30FE312568645DD3AB88D46B00
luadubtest executable
Error executing command build: Link command failed with exit code
1
I'm using Linux Mint so maybe I have the wrong lua lib installed?
I tried using the --rdmd flag and I get:
Running rdmd...
Error: cannot read file
../../../.dub/packages/luad-master/source/app.d
Failed: 'dmd' '-release' '-inline' '-O' '-w' '-version=Have_luad'
'-I../../../.dub/packages/luad-master' '-lib' '-v' '-o-'
'../../../.dub/packages/luad-master/source/app.d'
'-I../../../.dub/packages/luad-master/source'
Error executing command build: Build command failed with exit
code 1
This is my first time using dub so it could be that also. I've
wasted more time on this than I care to admit :).
Thanks a lot!
More information about the Digitalmars-d-learn
mailing list