tango and gdc

Carlos Santander csantander619 at gmail.com
Wed Aug 15 22:00:19 PDT 2007


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.

-- 
Carlos Santander Bernal


More information about the Digitalmars-d-learn mailing list