Boost logo

Boost-Build :

From: Malcolm Cifuentes (malcolm_cifuentes_at_[hidden])
Date: 2005-01-18 23:44:23


There doesn't appear to be any mechanism available to add libraries to
the link line. So for example I would like to add wininet.lib to the
link line using the Borland toolset. I could add the library using the
<linkflags> declaration, but this just upsets the linker because the
library is not placed in the link line where it would like to see it and
besides which it is an ugly hack.

Is there a mechanism available for adding libraries to the link line?

I've had a look through a couple of the toolset/.jam files and there
doesn't appear to be a standard mechanism available.

Typically in make this would be done by adding to a LIBS, LIBRARIES or a
SYSLIBS variable.

I see <library> exists but this is used for defining boost buildable
libraries - I think. If I was sick I could probably explicitly state
the system libs with a full path using this mechanism and it may work,
but I don't think that is the intent of the mechanism.

Thoughts?

 ------=_NextPart_000_0014_01C4FE24.9C8B5030 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>
<!--
/* 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=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>There doesn&#8217;t appear to be any mechanism available=
to
add libraries to the link line.&nbsp; So for example I would like to add wi=
ninet.lib
to the link line using the Borland toolset.&nbsp; I could add the library u=
sing
the &lt;linkflags&gt; declaration, but this just upsets the linker because =
the library
is not placed in the link line where it would like to see it and besides wh=
ich
it is an ugly hack.</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>Is there a mechanism available for adding libraries to t=
he link
line?</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>I&#8217;ve had a look through a couple of the toolset/.j=
am
files and there doesn&#8217;t appear to be a standard mechanism available.<=
/span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>Typically in make this would be done by adding to a LIBS=
,
LIBRARIES or a SYSLIBS variable. </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>I see &lt;library&gt; exists but this is used for defini=
ng boost
buildable libraries &#8211; I think.&nbsp; If I was sick I could probably e=
xplicitly
state the system libs with a full path using this mechanism and it may work=
,
but I don&#8217;t think that is the intent of the mechanism.</span></font><=
/p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>Thoughts?</span></font></p>

</div>

</body>

</html>
 ------=_NextPart_000_0014_01C4FE24.9C8B5030--


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