Opened 10 years ago
Closed 7 years ago
#8331 closed Feature Requests (fixed)
Boost compatibility with Interix
Reported by: | Owned by: | No-Maintainer | |
---|---|---|---|
Milestone: | To Be Determined | Component: | preprocessor |
Version: | Boost 1.52.0 | Severity: | Problem |
Keywords: | Cc: |
Description
When including the boost libraries on a Windows XP SP3 machine via Interix v3.5 using gcc 3.4.6 I would receive a number of pre-compiler errors complaining that boost threads were "unavailable on this platform". I resolved this issue by including the following code prior to the first inclusion of a boost library:
#ifdef ARCH_Interix an internal definition
# include <boost/config.hpp>
# define BOOST_HAS_THREADS
# define BOOST_HAS_PTHREADS
#endif
There must be a more eloquent way of setting the thread definitions for Interix from within files such as /boost/thread/detail/platform.hpp, boost/thread/detail/config.hpp, or boost/config/select_platform_config.hpp. I'll leave that to the development teams prerogative. In any case, making the boost libraries comparable with Interix should not be overly complex. Please let me know if I can provide more information.
Change History (3)
comment:1 by , 10 years ago
comment:3 by , 7 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
please note, "an internal definition" is meant to be commented. where