Nevermind, I think I figured it out. Looks like libgphobos2 depends on libm, libpthread, and librt. So, changing the SConstruct file to:

DefaultEnvironment(DC='/opt/gdc/bin/gdmd')
Program('helloworld',
        'main.d',
        LIBPATH=['/opt/gdc/lib64','/usr/lib'],
        LIBS=['gphobos2','m','pthread','rt'])

Solves the problem. Though, if there's a better way to do things, feel free to let me know.

Reply via email to