Forum Navigation
GDC + Tango on x86_64: undefined references
Posted: 03/28/08 18:18:45How do I use tango + gdc on x86_64 linux? (Using gdc 4.1 20080114 & tango 0.99.5 or r3401.)
OK, I've successfully compiled (at least I thought) libgphobos.a and libgtango.a using the lib/ scripts and installed. I can compile, but at link time get undefined references (using either dsss with the gdc-posix-tango profile or gdmd directly & linking libgtango.a).
Testing building on a ~4000 line project, I get the following undefined references (this is a cleaned up list of all link errors):
undefined reference to `_D5tango4core6Thread6Thread4joinMFbZv' undefined reference to `_D5tango4core6Thread6Thread5sleepFdZv' undefined reference to `_D5tango4core6Thread11ThreadGroup7__ClassZ' undefined reference to `_D5tango4core6Thread11ThreadGroup6createMFPFZvZC5tango4core6Thread6Thread' undefined reference to `_D5tango4core6Thread11ThreadGroup7opApplyMFDFKC5tango4core6Thread6ThreadZiZi' undefined reference to `_D5tango4core6Thread12__ModuleInfoZ' undefined reference to `_D5tango4core9Exception11IOException7__ClassZ' undefined reference to `_D5tango4core9Exception11IOException5_ctorMFAaZC5tango4core9Exception11IOException' undefined reference to `_D5tango4core9Exception13TextException7__ClassZ' undefined reference to `_D5tango4core9Exception13TextException5_ctorMFAaZC5tango4core9Exception13TextException' undefined reference to `_D5tango4core9Exception15ThreadException7__ClassZ' undefined reference to `_D5tango4core9Exception16UnicodeException7__ClassZ' undefined reference to `_D5tango4core9Exception16UnicodeException5_ctorMFAamZC5tango4core9Exception16UnicodeException' undefined reference to `_D5tango4core9Exception17PlatformException7__ClassZ' undefined reference to `_D5tango4core9Exception17PlatformException5_ctorMFAaZC5tango4core9Exception17PlatformException' undefined reference to `_D5tango4core9Exception20ArrayBoundsException7__ClassZ' undefined reference to `_D5tango4core9Exception22NoSuchElementException7__ClassZ' undefined reference to `_D5tango4core9Exception22NoSuchElementException5_ctorMFAaZC5tango4core9Exception22NoSuchElementException' undefined reference to `_D5tango4core9Exception23IllegalElementException7__ClassZ' undefined reference to `_D5tango4core9Exception23IllegalElementException5_ctorMFAaZC5tango4core9Exception23IllegalElementException' undefined reference to `_D5tango4core9Exception24IllegalArgumentException7__ClassZ' undefined reference to `_D5tango4core9Exception24IllegalArgumentException5_ctorMFAaZC5tango4core9Exception24IllegalArgumentException' undefined reference to `_D5tango4core9Exception26CorruptedIteratorException7__ClassZ' undefined reference to `_D5tango4core9Exception26CorruptedIteratorException5_ctorMFAaZC5tango4core9Exception26CorruptedIteratorException' undefined reference to `_D6object9Exception5_ctorMFAaC9ExceptionZC9Exception' undefined reference to `onUnicodeError'Hence it looks like just Exception.d is missing. I checked the build scripts to see that ar links Exception.o into both libraries that it should. So I'm now unsure of what to try next... any ideas? Is this a tango bug or something else? Thanks in advance for any help.