Boost logo

Boost-Build :

From: Malcolm Cifuentes (malcolm_cifuentes_at_[hidden])
Date: 2005-01-16 07:42:28


Hi all,

I am trying to build a static library using Borland and the
*wonderful* tool tlib.

Has any one managed to get this to work?

It would seem that trying to pass a directory with a - (i.e.
bin/Borland/debug/link-static/Blah.lib) in the library name causes a
problem for tlib. This is regardless of the type of environment (cygwin
or dos).

Having said that, upon further investigation in borland.jam there
appears to be a work around in place. When using CYGWIN a function is
defined to create a temporary batch file to execute the tlib command.

First off this work around is not activated on my system because cygwin
is reported as NT CYGWIN and not CYGWIN and secondly when the function
is activated the batch file does not work.

I can't get tlib to work in any configuration with the previously
mentioned directory structure so I don't think it is a shell related
issue.

I can think of only two solutions to this problem:

1. execute tlib from with in the lib directory (maybe this is what the
batch file is trying to achieve) - currently what I am doing!

2. change the directory structure so there is no dash, which I would
love to know how to do for other reasons.

I am sort of hoping though that there is an even simpler solution, i.e.
it already works and I have missed the obvious:-)

Is this a real problem?

Thanks for any help

mal

 ------=_NextPart_000_0001_01C4FC0B.E6EA6FA0 Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html>

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=3Dus-ascii"=
>

<meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">

<style>
<!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{font-family:Arial;
color:windowtext;}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D=
'font-size:
12.0pt'>Hi all,</span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D=
'font-size:
12.0pt'>&nbsp;&nbsp; I am trying to build a static library using Borland an=
d
the *<b><span style=3D'font-weight:bold'>wonderful</span></b>* tool tlib.&n=
bsp; </span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D=
'font-size:
12.0pt'>&nbsp;&nbsp; Has any one managed to get this to work?</span></font>=
</p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D=
'font-size:
12.0pt'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D=
'font-size:
12.0pt'>It would seem that trying to pass a directory with a &#8211; (i.e.
bin/Borland/debug/link-static/Blah.lib) in the library name causes a proble=
m
for tlib.&nbsp; This is regardless of the type of environment (cygwin or do=
s).</span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D=
'font-size:
12.0pt'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D=
'font-size:
12.0pt'>Having said that, upon further investigation in borland.jam there
appears to be a work around in place. When using CYGWIN a function is defin=
ed
to create a temporary batch file to execute the tlib command. </span></font=
></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D=
'font-size:
12.0pt'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D=
'font-size:
12.0pt'>First off this work around is not activated on my system because cy=
gwin
is reported as NT CYGWIN and not CYGWIN and secondly when the function is
activated the batch file does not work.</span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D=
'font-size:
12.0pt'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D=
'font-size:
12.0pt'>I can&#8217;t get tlib to work in any configuration with the previo=
usly
mentioned directory structure so I don&#8217;t think it is a shell related
issue.</span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D=
'font-size:
12.0pt'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D=
'font-size:
12.0pt'>I can think of only two solutions to this problem:</span></font></p=
>

<p class=3DMsoNormal style=3D'text-indent:36.0pt'><font size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>1. execute tlib f=
rom with
in the lib directory (maybe this is what the batch file is trying to achiev=
e) &#8211;
currently what I am doing!</span></font></p>

<p class=3DMsoNormal style=3D'text-indent:36.0pt'><font size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>2. change the dir=
ectory
structure so there is no dash, which I would love to know how to do for oth=
er
reasons.</span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D=
'font-size:
12.0pt'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D=
'font-size:
12.0pt'>I am sort of hoping though that there is an even simpler solution, =
i.e.
it already works and I have missed the obvious</span></font><font
face=3DWingdings><span style=3D'font-family:Wingdings'>J</span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D=
'font-size:
12.0pt'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D=
'font-size:
12.0pt'>Is this a real problem?</span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D=
'font-size:
12.0pt'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D=
'font-size:
12.0pt'>Thanks for any help</span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D=
'font-size:
12.0pt'>mal</span></font></p>

</div>

</body>

</html>
 ------=_NextPart_000_0001_01C4FC0B.E6EA6FA0--


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk