Subject: [Boost-bugs] [Boost C++ Libraries] #1904: undefined reference to `boost::program_options::options_description::m_default_line_length'
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-05-08 14:17:11
#1904: undefined reference to
`boost::program_options::options_description::m_default_line_length'
--------------------------+-------------------------------------------------
Reporter: anonymous | Owner: vladimir_prus
Type: Bugs | Status: new
Milestone: Boost 1.35.1 | Component: program_options
Version: Boost 1.35.0 | Severity: Problem
Keywords: |
--------------------------+-------------------------------------------------
If one uses the boost_program_options, one gets a linker error:
undefined reference to
`boost::program_options::options_description::m_default_line_length'
Cause:
boost/program_options/options_description.hpp, line 158
Currently:
static const unsigned m_default_line_length;
Should be:
static const unsigned m_default_line_length = 80;
The constant without assigneed value seems to become optimized out by the
compiler.
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1904>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:57 UTC