Subject: [Boost-bugs] [Boost C++ Libraries] #2506: program_options::arg undefined. Win DLL
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-11-17 20:13:52
#2506: program_options::arg undefined. Win DLL
-------------------------------------------------+--------------------------
Reporter: Patrick White <patbob_at_[hidden]> | Owner: vladimir_prus
Type: Bugs | Status: new
Milestone: Boost 1.38.0 | Component: program_options
Version: Boost 1.36.0 | Severity: Problem
Keywords: |
-------------------------------------------------+--------------------------
In Boost 1.37.0, program_options::arg appears to be undefined in the
program_options DLL built for windows. Declared as extern in the boost
code, but never defined so ends up being an unresolved at link time.
Must add the following line in my program to work around:
BOOST_PROGRAM_OPTIONS_DECL std::string boost::program_options::arg;
FYI, had to define BOOST_ALL_NO_LIB macro to dodge unrelated boost bug
(but maybe that cause this?).
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2506> 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:59 UTC