[linking] simplifying compilation line with many boost libs
This post is mainly about the linux distribution of boost, oriented to gcc. Given the lack of pgk-config for linux and the lack of linking pragmas in g++ I am wondering if somebody investigated the possibility of having all boost binary libraries in one file or something like that. Such that compilation line c++ -lboost_regex -lboost_system -lboost_filesystem -lboost_mpi - lboost_serialization ... can be simplified into c++ -lboost_all or simply c++ -lboost where boost_all.so have the contents of all boost libraries or references to the other boost_*.so the idea is to simplify sharing short code with other people not familiar with boost itself. Thanks, Alfredo
Hi Alfredo,
I, too, use Linux (in my case Ubuntu) and have dabbled with Boost - where
time permits.
On 15 June 2011 20:28, alfC
Such that
compilation line c++ -lboost_regex -lboost_system -lboost_filesystem -lboost_mpi - lboost_serialization ...
can be simplified into
c++ -lboost_all
or simply c++ -lboost
In the past, when dealing with a different system altogether, I used makefiles to do lots of things. When dealing with multiple files, I'd set up a variable in the makefile. Unfortunately I'm too short of time to create an example makefile but if you're still interested, see http://www.gnu.org/software/make/manual/ for more details. HTH, Ian -- -- ACCU - Professionalism in programming - http://www.accu.org/
On Jun 15, 12:37 pm, Ian Bruntlett
Unfortunately I'm too short of time to create an example makefile but if you're still interested, seehttp://www.gnu.org/software/make/manual/for more details.
thanks, I am aware of Make, Jam, etc. the idea is to skip that step all together when the size of the C++ short program doesn't justify to have a makefile attached to it.
participants (2)
-
alfC
-
Ian Bruntlett