2012/3/14 Pervez, Salman <Salman.Pervez@citadelgroup.com>

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