[Boost-bugs] [Boost C++ Libraries] #12583: Reference to GetModuleHandleW when building for windows-api=store

Subject: [Boost-bugs] [Boost C++ Libraries] #12583: Reference to GetModuleHandleW when building for windows-api=store
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-11-04 22:38:10


#12583: Reference to GetModuleHandleW when building for windows-api=store
------------------------------+----------------------
 Reporter: bjorn.aili@… | Owner: anthonyw
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
  Version: Boost 1.62.0 | Severity: Problem
 Keywords: |
------------------------------+----------------------
 Line 63 in boost/thread/win32/thread_primitives.hpp references
 GetModuleHandleW, which is not available under the Windows Store API.
 However, when building boost for our Store app, this line was not among
 the ones #ifdefed away, and thus caused a compile error. We trivially
 fixed it by commenting it out, but that is obviously not a portable
 solution.

 Here's the build command we used:

 b2 -j8 toolset=msvc windows-api=store threading=multi address-model=64
 architecture=x86 --with-thread --with-chrono --with-date_time
 cxxflags="/AI\"C:/Program Files (x86)/Microsoft Visual Studio
 14.0/VC/lib/store/refererences\"" define=BOOST_THREAD_VERSION=4
 define=BOOST_THREAD_PROVIDES_EXECUTORS stage

 Perhaps this is not actually an issue, and we just did something wrong,
 but I figured I'd report it to make sure.

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