Re: [Boost-bugs] [Boost C++ Libraries] #1904: undefined reference to `boost::program_options::options_description::m_default_line_length'

Subject: Re: [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-11-17 19:59:58

#1904: undefined reference to
  Reporter: anonymous | Owner: vladimir_prus
      Type: Bugs | Status: closed
 Milestone: | Component: program_options
   Version: Boost 1.35.0 | Severity: Problem
Resolution: invalid | Keywords:

Comment(by patbob_at_[hidden]):

 I get this bug on Windows (VC++ 7.0 (2005)), boost 1.37.0. I am linking
 with program_options library. Perhaps this global is getting defined in
 some random boost library, but it certainly isn't in program_options lib
 where it belongs.

 The value is declared, but not defined.. at least, not in the
 program_options library where it belongs.

 If you get this error, provide an explicit line length to the
 options_description constructor so it doesn't try to use
 m_default_line_length. Like this:

 po::options_description desc("Options", 1024);

 I'm leaving this bug closed since it probably isn't a proiblem for most
 users... just windows users :)

Ticket URL: <>
Boost C++ Libraries <>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:59 UTC