Dan Pieczynski wrote:
I had rebuilt my library using bjam because I needed a 32 bit Linux build(while on a 64 bit machine).
I built the libraries and linked them into my project. I was attempting to use my local boost files, but I get an error referring to another boost include directory which is a different version. I don't specify the path being referred to in my link steps anywhere, so I'm assuming my build with bjam didn't specify a necessary define.
The error I see is: main.o(.gnu.linkonce.t._ZN5boost15program_options25basic_command_line_parserIcEC1EiPPc+0x53): In function `boost::program_options::basic_command_line_parser<char>::basic_command_line_parser(int, char**)': /usr/include/boost/program_options/detail/parsers.hpp:42: undefined reference to
`boost::program_options::common_command_line_parser::common_command_line_parser(std::vector std::char_traits<char>, std::allocator<char> >, std::allocator This definitely means that when you build your main.o file, you use Boost includes in
/usr/include/boost/, not any local version you might have. This does not seem to be a problem
with the way boost is built.
- Volodya