build error with boost 1.68

Open
#60 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp
Domain
build-system

Research direction

Start with the program_options Jamfile.v2 and compare its boost-lib definition with the boost.timer example mentioned in the issue. Reproduce the Boost 1.68 build and verify that program_options-mt.lib is created and can be copied successfully.

Written by the indexing model from the issue text.

Description

When building boost 1.68, I have an error when building program_options where it cannot copy the program_options-mt.lib file.

It seems the .lib file is not created since nothing is exported when not using BOOST_ALL_DYN_LIB.

Taking example on boost.timer, I modified the Jamfile.v2 file to look like this

boost-lib program_options
    : $(SOURCES).cpp
    : # See https://svn.boost.org/trac/boost/ticket/5049
      <target-os>hpux,<toolset>gcc:<define>_INCLUDE_STDC__SOURCE_199901
      <link>shared:<define>BOOST_PROGRAM_OPTIONS_DYN_LINK=1
      <link>static:<define>BOOST_PROGRAM_OPTIONS_STATIC_LINK=1
    ;

and it seems to fix my issue.

Dominant language
C++
Stars
136
Forks
117
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boostorg/program_options

All issues in boostorg/program_options

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.