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
`boost::program_options::options_description::m_default_line_length'
-------------------------------+-----------------------------
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:
BOOST_ALL_NO_LIB
since I do not want autolink feature.
The two variables mentioned in this thread are not found at link time
unless I define explicitely
BOOST_ALL_DYN_LINK
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
manually.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/1904#comment:8> 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:50:16 UTC