Thread overview
tango link trouble
Mar 03, 2007
Ansible
Mar 03, 2007
Lars Ivar Igesund
Mar 03, 2007
Ansible
Mar 03, 2007
Lars Ivar Igesund
Mar 04, 2007
Ansible
Mar 04, 2007
Lars Ivar Igesund
Mar 04, 2007
Ansible
March 03, 2007
I'm trying to get going with the Tango library.  The windows installer is not available from the dsource website, so I got the source and manually installed it and got it to compile.  The hello.d included with tango compiles and links fine.  I'm using the DMD compiler on windows.

So, my first program with Tango has some link errors, below.  What do I need to do to get this to link correctly?

L:\home\bburdette\Docs\D\ben\Modeler>dmd modeler.d
L:\home\bburdette\Docs\D\dmd\bin\..\..\dm\bin\link.exe modeler,,,user32+kernel32
/noi;
OPTLINK (R) for Win32  Release 7.50B1
Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved

modeler.obj(modeler)
 Error 42: Symbol Undefined _D5tango4text7convert5Float7__arrayZ
modeler.obj(modeler)
 Error 42: Symbol Undefined _D5tango4text7convert5Float5pow10FkZd
modeler.obj(modeler)
 Error 42: Symbol Undefined _D5tango4text7convert7Integer7__arrayZ
modeler.obj(modeler)
 Error 42: Symbol Undefined _D5tango2io11FileConduit11FileConduit7__ClassZ
modeler.obj(modeler)
 Error 42: Symbol Undefined _D5tango2io11FileConduit11FileConduit15ReadWriteCrea
teS5tango2io11FileConduit11FileConduit5Style
modeler.obj(modeler)
 Error 42: Symbol Undefined _D5tango2io11FileConduit11FileConduit5_ctorMFAaS5tan
go2io11FileConduit11FileConduit5StyleZC5tango2io11FileConduit11FileConduit
modeler.obj(modeler)
 Error 42: Symbol Undefined _D5tango2io8protocol6Reader6Reader7__ClassZ
modeler.obj(modeler)
 Error 42: Symbol Undefined _D5tango2io8protocol6Reader6Reader5_ctorMFC5tango2io
5model8IConduit8IConduitZC5tango2io8protocol6Reader6Reader
--- errorlevel 8
March 03, 2007
Ansible wrote:

> I'm trying to get going with the Tango library.  The windows installer is not available from the dsource website, so I got the source and manually installed it and got it to compile.  The hello.d included with tango compiles and links fine.  I'm using the DMD compiler on windows.

The slow mirror links should have worked, but since those really are the new server now, I've fixed the links.

> 
> So, my first program with Tango has some link errors, below.  What do I need to do to get this to link correctly?

This is because there is no tango library (due to prior problems with this), and thus you need to compile in the dependent source files, also from tango. We recommend using one of the dependency tracking build tools for this, rebuild or bud. Further details should be in the reference documentation. Sorry about the inconvenience.

> 
> L:\home\bburdette\Docs\D\ben\Modeler>dmd modeler.d
> L:\home\bburdette\Docs\D\dmd\bin\..\..\dm\bin\link.exe
> modeler,,,user32+kernel32
> /noi;
> OPTLINK (R) for Win32  Release 7.50B1
> Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved
> 
> modeler.obj(modeler)
>   Error 42: Symbol Undefined _D5tango4text7convert5Float7__arrayZ
> modeler.obj(modeler)
>   Error 42: Symbol Undefined _D5tango4text7convert5Float5pow10FkZd
> modeler.obj(modeler)
>   Error 42: Symbol Undefined _D5tango4text7convert7Integer7__arrayZ
> modeler.obj(modeler)
>   Error 42: Symbol Undefined
>   _D5tango2io11FileConduit11FileConduit7__ClassZ
> modeler.obj(modeler)
>   Error 42: Symbol Undefined
> _D5tango2io11FileConduit11FileConduit15ReadWriteCrea
> teS5tango2io11FileConduit11FileConduit5Style
> modeler.obj(modeler)
>   Error 42: Symbol Undefined
> _D5tango2io11FileConduit11FileConduit5_ctorMFAaS5tan
> go2io11FileConduit11FileConduit5StyleZC5tango2io11FileConduit11FileConduit
> modeler.obj(modeler)
>   Error 42: Symbol Undefined _D5tango2io8protocol6Reader6Reader7__ClassZ
> modeler.obj(modeler)
>   Error 42: Symbol Undefined
> _D5tango2io8protocol6Reader6Reader5_ctorMFC5tango2io
> 5model8IConduit8IConduitZC5tango2io8protocol6Reader6Reader
> --- errorlevel 8

-- 
Lars Ivar Igesund
blog at http://larsivi.net
DSource, #d.tango & #D: larsivi
Dancing the Tango
March 03, 2007
>> So, my first program with Tango has some link errors, below.  What do I
>> need to do to get this to link correctly?
> 
> This is because there is no tango library (due to prior problems with this),
> and thus you need to compile in the dependent source files, also from
> tango. We recommend using one of the dependency tracking build tools for
> this, rebuild or bud. Further details should be in the reference
> documentation. Sorry about the inconvenience.
> 

Ok, the 'bud' download is back; it was down earlier today.  I downloaded  the exe, renamed it 'bud.exe', and put it in my \dmd\bin dir.  Now typing "bud Modeler.d" works.  Thx for the info.

I'm assuming that's what you meant, and that you didn't mean I should recompile tango with bud, right?  I'm a little unclear on that from the web page: http://www.dsource.org/projects/tango/wiki/TopicBuildingAndCompiling
March 03, 2007
Ansible wrote:

>>> So, my first program with Tango has some link errors, below.  What do I need to do to get this to link correctly?
>> 
>> This is because there is no tango library (due to prior problems with this), and thus you need to compile in the dependent source files, also from tango. We recommend using one of the dependency tracking build tools for this, rebuild or bud. Further details should be in the reference documentation. Sorry about the inconvenience.
>> 
> 
> Ok, the 'bud' download is back; it was down earlier today.  I downloaded
>   the exe, renamed it 'bud.exe', and put it in my \dmd\bin dir.  Now
> typing "bud Modeler.d" works.  Thx for the info.
> 
> I'm assuming that's what you meant, and that you didn't mean I should recompile tango with bud, right?  I'm a little unclear on that from the web page: http://www.dsource.org/projects/tango/wiki/TopicBuildingAndCompiling

Yes, you understood quite well :) I have tried to clarify the relevant sentences on that page somewhat.

-- 
Lars Ivar Igesund
blog at http://larsivi.net
DSource, #d.tango & #D: larsivi
Dancing the Tango
March 04, 2007
>> I'm assuming that's what you meant, and that you didn't mean I should
>> recompile tango with bud, right?  I'm a little unclear on that from the
>> web page:
>> http://www.dsource.org/projects/tango/wiki/TopicBuildingAndCompiling
> 
> Yes, you understood quite well :) I have tried to clarify the relevant
> sentences on that page somewhat.
> 

Thx for the help!

I've run into a new problem, its a link error on the linked list.  When I try compiling a linked list example I get this:

L:\home\bburdette\Docs\D\ben\Modeler>bud chapterstorage.d
OPTLINK (R) for Win32  Release 7.50B1
Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved

L:\home\bburdette\Docs\D\dmd\import\tango\tango\util\collection\LinkSeq.obj(Link
Seq)
 Error 42: Symbol Undefined _D5tango4util10collection4impl4Cell26__T4CellTPC7mod
eler5PointZ4Cell7elementMFZPC7modeler5Point

L:\home\bburdette\Docs\D\ben\Modeler>


Also, I tried getting the lib installer, setup-tango-0.95-beta1.exe. This time I was able to download it, but the installer gets a 404 error trying to download a zip file.

Browsing through the docs it looks like a promising lib though, I'm looking forward to getting it working...

Ben
March 04, 2007
Ansible wrote:

>>> I'm assuming that's what you meant, and that you didn't mean I should recompile tango with bud, right?  I'm a little unclear on that from the web page: http://www.dsource.org/projects/tango/wiki/TopicBuildingAndCompiling
>> 
>> Yes, you understood quite well :) I have tried to clarify the relevant sentences on that page somewhat.
>> 
> 
> Thx for the help!
> 
> I've run into a new problem, its a link error on the linked list.  When I try compiling a linked list example I get this:
> 
> L:\home\bburdette\Docs\D\ben\Modeler>bud chapterstorage.d
> OPTLINK (R) for Win32  Release 7.50B1
> Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved
> 
> L
\home\bburdette\Docs\D\dmd\import\tango\tango\util\collection\LinkSeq.obj(Link
> Seq)
>   Error 42: Symbol Undefined
> _D5tango4util10collection4impl4Cell26__T4CellTPC7mod
> eler5PointZ4Cell7elementMFZPC7modeler5Point
> 
> L:\home\bburdette\Docs\D\ben\Modeler>
> 

If you're testing example/manual/chapterStorage.d, then we're somewhat confused as it seems to work where we've tested it. If you've modified it, I'd suggest posting the source (maybe in our forum?), and also the output of "bud -test chapterstorage.d".

Note that templates and the linker coming with DMD not always are best friends.

> 
> Also, I tried getting the lib installer, setup-tango-0.95-beta1.exe. This time I was able to download it, but the installer gets a 404 error trying to download a zip file.

Hmm, probably an issue with the dsource move.

> 
> Browsing through the docs it looks like a promising lib though, I'm looking forward to getting it working...

So do we :)

-- 
Lars Ivar Igesund
blog at http://larsivi.net
DSource, #d.tango & #D: larsivi
Dancing the Tango
March 04, 2007
> 
> If you're testing example/manual/chapterStorage.d, then we're somewhat
> confused as it seems to work where we've tested it. If you've modified it,
> I'd suggest posting the source (maybe in our forum?), and also the output
> of "bud -test chapterstorage.d".
> 
> Note that templates and the linker coming with DMD not always are best
> friends.
> 

ah, didn't know you guys had a forum for tango.  I guess that explains why I haven't seen many posts about it here.  moving over there...