2011-10-17 8 views
3

Je viens d'installer le compilateur DMD de http://www.digitalmars.com/d/download.html pour Ubuntu 64 bits (dmd_2.055-0_amd64.deb). Mais quand j'essaie tu courir simple hello.dUbuntu 11.10 et DMD?

import std.stdio; 

void main() 
{ 
    writeln("hello"); 
} 

avec la commande sur un terminal: $ DMD hello.d

affiche l'erreur suivante:

/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib/libphobos2.a(datetime_48b_1ec.o): In function `_D3std8datetime5Clock11currStdTimeFNdNeZl': 
std/datetime.d:(.text._D3std8datetime5Clock11currStdTimeFNdNeZl+0x1d): undefined reference to `clock_gettime' 
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib/libphobos2.a(time_c0_4d1.o): In function `_D4core4time12TickDuration12_staticCtor7OFNeZv': 
src/core/time.d:(.text._D4core4time12TickDuration12_staticCtor7OFNeZv+0x1f): undefined reference to `clock_getres' 
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib/libphobos2.a(time_c0_4d1.o): In function `_D4core4time12TickDuration14currSystemTickFNdNeZS4core4time12TickDuration': 
src/core/time.d:(.text._D4core4time12TickDuration14currSystemTickFNdNeZS4core4time12TickDuration+0x1f): undefined reference to `clock_gettime' 
collect2: ld devolvió el estado de salida 1 
--- errorlevel 1 

Je ne savoir quel est le problème et je ne peux pas trouver la solution sur le web.

Répondre

Questions connexes