tango and gdc

Lars Noschinski lars-2006-1 at usenet.noschinski.de
Fri Aug 17 10:28:43 PDT 2007


* Carlos Santander <csantander619 at gmail.com> [07-08-16 07:00]:
>Jason House escribió:
>>Under linux, I have gotten past compilation issues with -fversion=Posix, but I 
>>fail to link.  Any ideas on what could be going wrong?
>>$ gdc -fversion=Posix -w -g *.d -o housebot-0.6.gdc -I /import/ -ltango
>>/home/jhouse/tmp/cceVjUiy.o: In function `_Dmain':
>>/home/jhouse/Documents/go/housebot-0.6/housebot.d:259: undefined reference to 
>>`_D3std2gc7disableFZv'
>>/bin/../lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libtango.a(tango.util.time.StopWatch.o): 
>>In function `_D5tango4util4time9StopWatch9StopWatch4stopMFZf':
>>tango/util/time/StopWatch.d:(.gnu.linkonce.t_D5tango4util4time9StopWatch9StopWatch4stopMFZf+0x17): 
>>undefined reference to `__U64_LDBL'
>>/bin/../lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libtango.a(tango.util.time.StopWatch.o): 
>>In function `_D5tango4util4time9StopWatch9StopWatch5timerFZm':
>>tango/util/time/StopWatch.d:(.gnu.linkonce.t_D5tango4util4time9StopWatch9StopWatch5timerFZm+0x4f): 
>>undefined reference to `_d_throw at 4'
>>/bin/../lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libtango.a(tango.math.Math.o): 
>>In function `_D5tango4math4Math4asinFcZc':
>>tango/math/Math.d:(.gnu.linkonce.t_D5tango4math4Math4asinFcZc+0x26): undefined 
>>reference to `_Cmul'
>>etc...
>
>I've had more luck getting Tango programs to compile with either Bud (as in the 
>examples) or Rebuild.

Bud does not build with Tango, so I tried rebuild. It works, but builds
a lot of object files, probably one for each Tango class used. This is
somehow annoying and I wonder, if there should not a precompiled binary?

I installed Tango/GDC via the tango+gdc installer from the tango
website in /usr/local.


More information about the Digitalmars-d-learn mailing list