Opened 6 years ago
Closed 5 years ago
#12583 closed Support Requests (obsolete)
Reference to GetModuleHandleW when building for windows-api=store
Reported by: | Owned by: | viboes | |
---|---|---|---|
Milestone: | To Be Determined | Component: | thread |
Version: | Boost 1.62.0 | Severity: | Problem |
Keywords: | Cc: |
Description
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.
Change History (4)
comment:1 by , 6 years ago
comment:2 by , 6 years ago
Owner: | changed from | to
---|
comment:3 by , 6 years ago
Type: | Bugs → Support Requests |
---|
Moved to support request until more information provided.
comment:4 by , 5 years ago
Resolution: | → obsolete |
---|---|
Status: | new → closed |
Closed as there is no follow up.
I don't know what windows-api=store means. Any patch that make it work for this target is welcome as soon as the patch is done conditionally to this target.