Opened 10 years ago

Closed 7 years ago

#8331 closed Feature Requests (fixed)

Boost compatibility with Interix

Reported by: Andrin Foster <akf@…> 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 Andrin Foster <akf@…>, 10 years ago

please note, "an internal definition" is meant to be commented. where

ARCH_Interix

is the SDS equivalent of what would be

__INTERIX__

in Boost style.

comment:2 by Edward Diener, 7 years ago

This needs to be filed as a config issue and not a preprocessor issue.

comment:3 by Edward Diener, 7 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.