Subject: Re: [Boost-bugs] [Boost C++ Libraries] #13326: linking with program_options has unresolved symbols on MSVC
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-03-22 15:22:45
#13326: linking with program_options has unresolved symbols on MSVC
-----------------------------------------+-----------------------------
Reporter: Mario Emmenlauer <mario@â¦> | Owner: Vladimir Prus
Type: Bugs | Status: new
Milestone: To Be Determined | Component: program_options
Version: Boost 1.65.0 | Severity: Problem
Resolution: | Keywords:
-----------------------------------------+-----------------------------
Comment (by Vladimir Prus):
I am not sure it's a problem with STL classes - the two unresolved
references are not STL classes, they are static members of program_options
classes. When building program_options,
`-DBOOST_PROGRAM_OPTIONS_DYN_LINK=1` must be set, otherwise these two are
not marked as exported, and this error occurs.
Commit 1f9413 indeed broke things, but it was then fixed in
https://github.com/boostorg/boost/commit/a696afede9da8dbf0e3084ad07585148903bfaca
So, the first step in diagnosing this issue would be to go to
libs/program_options/build, run `b2 toolset=msvc link=shared -n` and see
whether the library is built with `-DBOOST_PROGRAM_OPTIONS_DYN_LINK=1` or
not.
-- Ticket URL: <https://svn.boost.org/trac10/ticket/13326#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 : 2018-03-22 15:30:49 UTC