Forum Navigation
How do you configure rebuild to work with Tango?
Posted: 05/19/09 22:01:38I have Eclipse + Descent + DMD + Tango + DSSS/Rebuild installed and working properly on Ubuntu 9.04, except that when I try to use rebuild to compile a program (importing a tango library) in Eclipse, it gives me a bunch of linking errors:
./tango.io.device.Conduit.o: In function `_D5tango2io6device7Conduit7Conduit5_ctorMFZC5tango2io6device7Conduit7Conduit': Conduit.d:(.text+0xe): undefined reference to `_D5tango4core6Thread5Fiber7getThisFZC5tango4core6Thread5Fiber' ./tango.io.device.Conduit.o: In function `_D5tango2io6device7Conduit7Conduit5errorMFAaZv': Conduit.d:(.text+0x184): undefined reference to `_D5tango4core9Exception11IOException7__ClassZ' Conduit.d:(.text+0x1a1): undefined reference to `_D5tango4core9Exception11IOException5_ctorMFAaZC5tango4core9Exception11IOException' ./tango.io.device.Conduit.o:(.data+0x1e8): undefined reference to `_D5tango4core6Thread12__ModuleInfoZ' collect2: ld returned 1 exit statusHere is the program code I am trying to write:
module MyModule; import tango.io.Console; void main() { Cout("Hello World!").flush; }Is there a way to configure Rebuild to work with the tango library? Perhaps through /etc/rebuild/dmd-posix-tango, or etc/rebuild/default configuration files?