Boost logo

Boost Users :

From: Vladimir Prus (vladimir_at_[hidden])
Date: 2008-08-26 13:46:42


Olaf Peter wrote:

> Hi,
>
> I build release 1.36.0 on linux using jam successfully. By using this,
> I've got linker errors:
...
> main.cpp:(.text+0x312): undefined reference to
> `boost::program_options::options_description::m_default_line_length'
> main.cpp:(.text+0x3aa): undefined reference to
> `boost::program_options::options_description::m_default_line_length'
> main.cpp:(.text+0x478): undefined reference to
> `boost::program_options::options_description::m_default_line_length'
> main.cpp:(.text+0x4c6): undefined reference to
> `boost::program_options::options_description::m_default_line_length'
> main.cpp:(.text+0x55e): undefined reference to
> `boost::program_options::options_description::m_default_line_length'

Are the above complete output from compiler? What is the very first
error message?

>
> Any ideas what gone wrong?
>
> linker flags where:
>
> -rdynamic -L/usr/local/boost_1_36_0/lib ... -lboost_python
> -lboost_program_options -lboost_thread

I don't think that default build with produce libraries named this way -- they
will have various funny suffixes. What's the output of, say,

   ls -l /usr/local/boost_1_36_0/lib/*program_options*

- 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