Forum Navigation
Build problems after installing Tango
Posted: 07/16/07 01:24:42Hi All,
I'm an enthusiastic new D programmer and I've been trying to get Tango installed and building, and running into an undefined reference that I just can't seem to resolve. I've made sure that I've replaced libphobos.a with the version distributed with Tango, as well as of course moving the Tango 'import' directory into place, configuring my '/etc/dmd.conf' file to point to the 'import' directory and replacing the dmd compiler (and other bin tools) with those supplied with Tango. However, as seen below, I continue to get 'Object' as an undefined reference.
Any help would be greatly appreciated...
-TD
gcc t3.o player.o badguy.o goodguy.o -o t3 -m32 -Xlinker -L/usr/home/rbb/dmd/lib -ltango -lphobos -lpthread -lm player.o:(.rodata+0x48): undefined reference to `_D6object6Object6toUtf8MFZAa' badguy.o:(.rodata+0x4c): undefined reference to `_D6object6Object6toUtf8MFZAa' goodguy.o:(.rodata+0x4c): undefined reference to `_D6object6Object6toUtf8MFZAa' /usr/home/rbb/dmd/lib/libtango.a(tango.io.Console.o):(.rodata+0x34): undefined reference to `_D6object6Object6toUtf8MFZAa' /usr/home/rbb/dmd/lib/libtango.a(tango.io.Console.o):(.rodata+0x94): undefined reference to `_D6object6Object6toUtf8MFZAa' /usr/home/rbb/dmd/lib/libtango.a(tango.io.Buffer.o):(.rodata+0xe4): more undefined references to `_D6object6Object6toUtf8MFZAa' follow /usr/home/rbb/dmd/lib/libtango.a(tango.io.Buffer.o): In function `_D5tango2io6Buffer6Buffer5errorMFAaZv': tango/io/Buffer.d:(.gnu.linkonce.t_D5tango2io6Buffer6Buffer5errorMFAaZv+0xa): undefined reference to `_D5tango4core9Exception11IOException7ClassZ' tango/io/Buffer.d:(.gnu.linkonce.t_D5tango2io6Buffer6Buffer5errorMFAaZv+0x18): undefined reference to `_D5tango4core9Exception11IOException5_ctorMFAaZC5tango4core9Exception11IOException' /usr/home/rbb/dmd/lib/libtango.a(tango.io.Conduit.o): In function `_D5tango2io7Conduit7Conduit9exceptionMFAaZv': tango/io/Conduit.d:(.gnu.linkonce.t_D5tango2io7Conduit7Conduit9exceptionMFAaZv+0xa): undefined reference to `_D5tango4core9Exception11IOException7ClassZ' tango/io/Conduit.d:(.gnu.linkonce.t_D5tango2io7Conduit7Conduit9exceptionMFAaZv+0x18): undefined reference to `_D5tango4core9Exception11IOException5_ctorMFAaZC5tango4core9Exception11IOException' collect2: ld returned 1 exit status --- errorlevel 1