List Info

Thread: Setting link search paths with Boost.Build




Setting link search paths with Boost.Build
country flaguser name
United States
2007-05-29 14:55:50

I’ve hit another scenario now.  It seems like you can specify a link search path if you explicitly specify the static or dynamic library, such as like this:

 

python-extension MyExt :

   src.cpp :

 &nbsp; <name&gt;MyLib <search>MyPath

  ;

 

OR

 

python-extension MyExt

   : src.cpp MyPath//MyLib

  ;

 

Hopefully I’ve interpreted that much correctly.  That was what I gathered from reading the guide.

 

However, in our code we often use the pragma comment (autolink) mechanism to say which library we’re linking to, like so in the code:

 

#pragma comment(lib, “MyLib.lib̶1;)

 

Is there some way to supply a search path to BJam, so that for a given build, it searches there when linking.&nbsp; Something like (just guessing at what the syntax might be):

 

python-extension MyExt :

 &nbsp; src.cpp

  : <link-path>MyPath

  ;

 

I didn’;t find a clear answer to this from the documentation (though it’s quite possible I missed it).

 

Just trying to get going with all of this; I apologize for the high volume of questions.


Thanks in advance,

 

Lawrence

 

Re: Setting link search paths with Boost.Build
country flaguser name
Australia
2007-05-29 21:12:17
I think this is what you are after:

<linkflags>-LMyPath

mal
Lawrence Spector wrote:
> 
> 
> I’ve hit another scenario now.  It seems like you can
specify a link 
> search path if you explicitly specify the static or
dynamic library, 
> such as like this:
> 
>  
> 
> python-extension MyExt :
> 
>    src.cpp :
> 
>    <name>MyLib <search>MyPath
> 
>   ;
> 
>  
> 
> OR
> 
>  
> 
> python-extension MyExt
> 
>    : src.cpp MyPath//MyLib
> 
>   ;
> 
>  
> 
> Hopefully I’ve interpreted that much correctly.  That
was what I 
> gathered from reading the guide.
> 
>  
> 
> However, in our code we often use the pragma comment
(autolink) 
> mechanism to say which library we’re linking to, like
so in the code:
> 
>  
> 
> #pragma comment(lib, “MyLib.lib”)
> 
>  
> 
> Is there some way to supply a search path to BJam, so
that for a given 
> build, it searches there when linking.  Something like
(just guessing at 
> what the syntax might be):
> 
>  
> 
> python-extension MyExt :
> 
>    src.cpp
> 
>   : <link-path>MyPath
> 
>   ;
> 
>  
> 
> I didn’t find a clear answer to this from the
documentation (though it’s 
> quite possible I missed it).
> 
>  
> 
> Just trying to get going with all of this; I apologize
for the high 
> volume of questions.
> 
> 
> Thanks in advance,
> 
>  
> 
> Lawrence
> 
>  
> 
> 
>
------------------------------------------------------------
------------
> 
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

Re: Setting link search paths with Boost.Build
country flaguser name
Russian Federation
2007-05-30 01:57:41
Malcolm Cifuentes wrote:

> I think this is what you are after:
> 
> <linkflags>-LMyPath

Or

        <library-path>MyPath

- Volodya



_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

Re: Setting link search paths with Boost.Build
country flaguser name
United States
2007-05-30 09:04:30
Both solutions worked great.  Thanks again for the help!

-Lawrence

-----Original Message-----
From: boost-build-bounceslists.boost.org
[mailto:boost-build-bounceslists.boost.org] On Behalf
Of Vladimir Prus
Sent: Wednesday, May 30, 2007 2:58 AM
To: Boost.Build developer's and user's list
Subject: Re: [Boost-build] Setting link search paths with
Boost.Build

Malcolm Cifuentes wrote:

> I think this is what you are after:
> 
> <linkflags>-LMyPath

Or

        <library-path>MyPath

- Volodya



_______________________________________________
Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost-build
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )