[prev in list] [next in list] [prev in thread] [next in thread]
List: boost-build
Subject: [Boost-build] linking to boost binaries
From: "Guido Ziliotti" <guido.ziliotti () gmail ! com>
Date: 2007-06-11 8:52:37
Message-ID: db74c85f0706110152s4750b7beyd175c28ec79e20ac () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
My problem is linking with compiled boost binaries placed in my
boost-install directory.
My concrete example arose form timer example #1 from asio. The library to
link with is boost_date_time.
The file below does the job it succesfully compiles and links. The price to
pay is using
<linkflags>. I'm using tioolset=msvc (vc 8.0).
I was not very happy about that. I feel I'm very likely missing some better
bjam idiom which would do
the job.
------------ this i sthe content of the Jamroot attached gile
------------------------------
path-constant BOOST_ROOT : F:/guido/env/tree/boost/boost_1_34_0 ;
path-constant BOOST_INSTALL_ROOT : F:/guido/env/tree/boost/install ;
path-constant ASIO_FLAT_ROOT : F:/guido/env/tree/asio/asio-0.3.7 ;
path-constant ASIO_BOOST_ROOT : F:/guido/env/tree/asio/boost_asio_0_3_7 ;
use-project boost : $(BOOST_ROOT) ; #by the way "use-project /boost :
$(BOOST_ROOT) ;" better?
project timer1 :
requirements <include>$(ASIO_BOOST_ROOT)
<include>$(BOOST_INSTALL_ROOT)/include/boost-1_34
<library>/boost/date_time//boost_date_time <define>CRT_NONSTDC_NO_DEPRECATE
;
exe t1 : t1.cpp /boost//date_time :
<linkflags>/LIBPATH:$(BOOST_INSTALL_ROOT)/LIB ;
ECHO <linkflags>/LIBPATH:$(BOOST_INSTALL_ROOT)/LIB is needed how about some
workaround ;
[Attachment #5 (text/html)]
<div>My problem is linking with compiled boost binaries placed in my boost-install \
directory.</div> <div>My concrete example arose form timer example #1 from asio. \
The library to link with is boost_date_time.</div> <div>The file below does the job \
it succesfully compiles and links. The price to pay is using </div> \
<div><linkflags>. I'm using tioolset=msvc (vc 8.0).</div> <div> </div>
<div> </div>
<div>I was not very happy about that. I feel I'm very likely missing some \
better bjam idiom which would do</div> <div>the job.</div>
<div> </div>
<div> </div>
<div> </div>
<div>------------ this i sthe content of the Jamroot attached gile \
------------------------------</div> <div>
<p>path-constant BOOST_ROOT : F:/guido/env/tree/boost/boost_1_34_0 ;<br>path-constant \
BOOST_INSTALL_ROOT : F:/guido/env/tree/boost/install ;<br>path-constant \
ASIO_FLAT_ROOT : F:/guido/env/tree/asio/asio-0.3.7 ;<br>path-constant ASIO_BOOST_ROOT \
: F:/guido/env/tree/asio/boost_asio_0_3_7 ; </p>
<p>use-project boost : $(BOOST_ROOT) ; #by the way "use-project /boost : \
$(BOOST_ROOT) ;" better?</p> <p>project timer1 :<br> requirements \
<include>$(ASIO_BOOST_ROOT) \
<include>$(BOOST_INSTALL_ROOT)/include/boost-1_34 \
<library>/boost/date_time//boost_date_time \
<define>CRT_NONSTDC_NO_DEPRECATE ;<br> <br>exe t1 : t1.cpp \
/boost//date_time : <linkflags>/LIBPATH:$(BOOST_INSTALL_ROOT)/LIB ;</p> \
<p>ECHO <linkflags>/LIBPATH:$(BOOST_INSTALL_ROOT)/LIB is needed how about some \
workaround ;</p></div>
["Jamroot" (text/plain)]
path-constant BOOST_ROOT : F:/guido/env/tree/boost/boost_1_34_0 ;
path-constant BOOST_INSTALL_ROOT : F:/guido/env/tree/boost/install ;
path-constant ASIO_FLAT_ROOT : F:/guido/env/tree/asio/asio-0.3.7 ;
path-constant ASIO_BOOST_ROOT : F:/guido/env/tree/asio/boost_asio_0_3_7 ;
use-project boost : $(BOOST_ROOT) ; #by the way "use-project /boost : $(BOOST_ROOT) \
;" better?
project timer1 :
requirements <include>$(ASIO_BOOST_ROOT) \
<include>$(BOOST_INSTALL_ROOT)/include/boost-1_34 \
<library>/boost/date_time//boost_date_time <define>CRT_NONSTDC_NO_DEPRECATE ;
exe t1 : t1.cpp /boost//date_time : <linkflags>/LIBPATH:$(BOOST_INSTALL_ROOT)/LIB ;
ECHO <linkflags>/LIBPATH:$(BOOST_INSTALL_ROOT)/LIB is needed how how about some \
workaround ;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic