phobos config issue

Radu Toev radutoev at gmail.com
Sat Aug 27 06:40:39 PDT 2011


Hello,

I am trying to config my environment to use phobos, but I'm having some
problems.
When I run dmd file.d I get the following error:

/usr/local/lib/lib32/libphobos2.a(datetime_3ac_1ec.o): In function
`_D3std8datetime5Clock11currStdTimeFNdNeZl':
std/datetime.d:(.text._D3std8datetime5Clock11currStdTimeFNdNeZl+0x1d):
undefined reference to `clock_gettime'
/usr/local/lib/lib32/libphobos2.a(time_c5_4d1.o): In function
`_D4core4time12TickDuration12_staticCtor7OFNeZv':
src/core/time.d:(.text._D4core4time12TickDuration12_staticCtor7OFNeZv+0x1b):
undefined reference to `clock_getres'
/usr/local/lib/lib32/libphobos2.a(time_c5_4d1.o): In function
`_D4core4time12TickDuration14currSystemTickFNdNeZS4core4time12TickDuration':
src/core/time.d:(.text._D4core4time12TickDuration14currSystemTickFNdNeZS4core4time12TickDuration+0x1c):
undefined reference to `clock_gettime'
collect2: ld returned 1 exit status

I googled around for some answers, but found nothing that helped.
Note: I have in my dmd.conf file the -L-lrt flag, but it doesn't seem to
work.

My OS is Ubuntu 32 bit.

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20110827/59e7bfb8/attachment.html>


More information about the Digitalmars-d mailing list