Boost logo

Boost Users :

Subject: Re: [Boost-users] boost error
From: Krzysztof Czainski (1czajnik_at_[hidden])
Date: 2012-03-13 19:54:27


2012/3/14 Pervez, Salman <Salman.Pervez_at_[hidden]>

> Hi everyone, I am trying to do a source build for qpid 0.14. I am
> running into a boost dependency error which I am unable to solve. Here is
> the error...****
>
> ** **
>
> /usr/bin/ld: cannot find -lboost_program_options****
>
> collect2: ld returned 1 exit status****
>
> make[2]: *** [libqpidcommon.la] Error 1****
>
> ** **
>
> I also built boost from source so its no surprise that it cannot find the
> required file in /usr/bin/ld. Perhaps there is a way to tell it where to
> find boost? I passed the location of my boost build to the configure script
> through a CPPFLAG which helps it find the hpp files but perhaps not this
> one.
>
 I'm guessing here: try adding -L/path/to/the/boost/libs to LDFLAGS.

An aside note: I thought compiler flags go into CXXFLAGS instead of
CPPFLAGS, because CPP usually stands for the preprocessor in makefiles,
while CXX stands for the c++ compiler.

HTH
Kris



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