Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

boost program options: win64: bcp namespace renamed version: *.lib file of program_options for *.dll is not created

Open
#66 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start with libs/program_options/build/Jamfile.v2 and compare the referenced commit and issue 60. Reproduce a shared Windows build for program_options with the supported Boost toolchain, then verify that the corresponding import library is generated alongside the DLL; the issue is done when this works for win32 and win64.

Written by the indexing model from the issue text.

Description

Between boost 1.63.0 and 1.65.1 line 12 of file 'libs/program_options/build/Jamfile.v2' has been changed:
https://github.com/boostorg/program_options/commit/1f9413f532e58b82d12e9185c2eb8bc45612914c

This change is the reason why the *.lib file for the program_options *.dll file is not created on win64/win32.

Please consider reverting the change mentioned above partially and put back the definition of the flag BOOST_PROGRAM_OPTIONS_DYN_LINK=1:

diff -ruN boost_1_65_1.orig/libs/program_options/build/Jamfile.v2 boost_1_65_1/libs/program_options/build/Jamfile.v2
--- boost_1_65_1.orig/libs/program_options/build/Jamfile.v2	2018-11-20 15:18:48.469951300 +0100
+++ boost_1_65_1/libs/program_options/build/Jamfile.v2	2018-11-22 10:27:15.108147800 +0100
@@ -11,6 +11,10 @@
 
 boost-lib program_options
     : $(SOURCES).cpp
-    : # See https://svn.boost.org/trac/boost/ticket/5049
+    : <link>shared:<define>BOOST_PROGRAM_OPTIONS_DYN_LINK=1 # tell source we're building dll's
+      # See https://svn.boost.org/trac/boost/ticket/5049
       <target-os>hpux,<toolset>gcc:<define>_INCLUDE_STDC__SOURCE_199901
-    ;
\ No newline at end of file
+    :
+    : <link>shared:<define>BOOST_PROGRAM_OPTIONS_DYN_LINK=1
+    ;
+

Similar to issue: https://github.com/boostorg/program_options/issues/60

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.