www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Importing D libraries

I must be missing something incredibly obvious here, but I can't find
out what it is... I'm trying to build a very simple test program for
LuaD, right now it simply imports the library. But it throws a linker
error for some reason. Here's the program I'm trying to compile:

    import std.stdio;
    import luad.all;

    int main()
    {
    	readln();
    	return 0;
    }

This is what I use to compile it:

    dmd -ILuaD LuaTest.d

This is the error it gives me:

    LuaTest.o:(.data+0x18): undefined reference to `_D4luad3all12__ModuleInfoZ'
    collect2: ld returned 1 exit status
    --- errorlevel 1

I got LuaD by simply performing a git clone from here:
https://github.com/JakobOvrum/LuaD
Using Linux, DMD64 v2.053.
Jul 26 2011