Boost logo

Boost Users :

Subject: Re: [Boost-users] makefile
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2009-08-25 11:58:23


Shaolin wrote:

> Hi Guys
>
> How do I include boost dependencies in my makefile ?
>
> /usr/local/boost_1_39_0/boost/stage/lib/libboost_program_options-gcc43-mt-1_39.a
> /usr/local/boost_1_39_0/boost/stage/lib/libboost_thread-gcc43-mt-1_39.a
> -lpthread

You add those to the linker invocation command in your makefile.
Alternatively, you can use:

        -L/usr/local/boost_1_39_0/boost/stage/lib/ -lboost_program_options-gcc43-mt-1_39
        -lboost_thread-gcc43-mt-1_39 -lpthread

Note that this question has nothing to do with C++ Boost. I recommend
that you read manuals on make and gcc to get more detailed answer.

- Volodya
 


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