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: 2014-05-30 14:38:09

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

Comment (by renficiaud):

 I have the same problem. I use program_option through cmake, using the
 following define:

 since I do not want autolink feature.

 The two variables mentioned in this thread are not found at link time
 unless I define explicitely

 I do not have this problem with boost.system, boost.thread, boost.test and
 boost.chrono for instance. Looking at the config.h file, every define look
 fine (boost.program_options and boost.system).
 It looks like an incoherence in cmake find_boost module: the link is
 against the dynamic variants if Boost_USE_STATIC_LIBS is set to OFF, but
 the BOOST_ALL_DYN_LINK is not defined in Boost and should be defined

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:50:16 UTC