List Info

Thread: depending on boost libs ??




depending on boost libs ??
user name
2006-03-25 20:10:26
Hello All,

Newbie question here.

I'm having trouble doing something that I think should be
simple.  I've
googled around and have not found the answer so am trying
here.
Experimenting hasn't gotten me anywhere either.

I'm using boost build v2 that comes with the 1_3_3 version
of boost.

Would simply like to build an exe that depends on the
external pre-built
boost thread library.

I'm trying something like this:

exe foo :
	foo.c
	<what goes here to pull in boost thread lib?>
;

Thanks for your help,
-steve

	
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
depending on boost libs ??
user name
2006-03-25 20:49:58
Hi,

>Would simply like to build an exe that depends on the
external pre-built
>boost thread library.

I had the same problem, and found three solutions depends on
the 
requirements.

1. When you have a whole boost libraries with sources
downloaded from 
boost.org:

--------------
use-project /boost : C:/boost_1_33_1 ;
exe foo :
         foo.c
         /boost/thread//boost_thread
;
--------------

It compiles boost libraries "on demand" based on
the current variant 
(release/debug, static/shared, etc). It is very convenient,
but maybe 
does not fit in your case.



2. When you have a prebuilt boost thread library for the
specifc build 
variant. Assume you have:
C:\lib\libboost_thread-vc71-mt-s.lib

--------------
lib boost_thread : :
<file>C:\lib\libboost_thread-vc71-mt-s.lib ;
exe foo :
         foo.c
         boost_thread
;
--------------



3. When you have prebuilt boost thread libraries for many
build variants, 
and want to select correct one for the current build
variant.

I don't know the best solution, but I ended up with writing
library 
selection code by myself.

Assume you have boost libraries at
C:/TOOLS/boost_1_33_0/stage/lib, I'm 
attaching my solution.

Unfortunately, it works only for windows platform so far. It
should not 
be a big deal to extend it to other platform, though.

Thank you.


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

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