[Boost-bugs] [Boost C++ Libraries] #9428: Lib program_options build fail for mingw

Subject: [Boost-bugs] [Boost C++ Libraries] #9428: Lib program_options build fail for mingw
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-11-24 08:28:49


#9428: Lib program_options build fail for mingw
---------------------------------------------+-----------------------------
 Reporter: Jan Rosendahl <jan.rosendahl@…> | Type: Patches
   Status: new | Milestone: To Be
Component: Building Boost | Determined
 Severity: Problem | Version: Boost 1.55.0
                                             | Keywords: Build MinGw
---------------------------------------------+-----------------------------
 Library program_options (boost 1.55, same applies to earlier boost
 versions) does not build for mingw (4.6.2). Don't know if MinGW is fully
 supported by boost, but some libraries do seem to have adaptation for it.
 Solution seems straight-forward. File
 ...\libs\program_options\src\parsers.cpp:

 #if !defined(_WIN32) || defined(__COMO_VERSION__)
 extern char** environ;
 #else
 // SMAL patch for MinGW
 #if defined(_WIN32) && defined(__MINGW32__)
 extern char** environ;
 #endif


 (SMAL is a soon-to-be released open-source sw)

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9428>
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:14 UTC