Boost logo

Boost Users :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-03-28 13:22:13


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::basic_string<char,
> std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char,
> std::char_traits<char>, std::allocator<char> > > > const&)'

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


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