Boost logo

Boost Users :

Subject: Re: [Boost-users] [linking] simplifying compilation line with many boost libs
From: Ian Bruntlett (ian.bruntlett_at_[hidden])
Date: 2011-06-15 15:37:30


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 <alfredo.correa_at_[hidden]> wrote:

> 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/


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net