Open richard-sim opened 11 years ago
What's your OSX version? Are you using brew or macports?, I've never seen that problem.
I am also having this problem with 10.9 (13A603) and homebrew.
OS X 10.9 (13A3017) and homebrew here also.
I don't think that this is a boost issue - even if boost is also providing the tr1 stuff. It seems as if starting with 10.9 the default behaviour of the compiler has changed with respect to C++ standard and/or using libstdc++. See also http://stackoverflow.com/questions/19774778/when-is-it-necessary-to-use-use-the-flag-stdlib-libstdc or various other posts describing similar problems with MacPort/Homebrew and other applications.
It can be fixed adding -stdlib=libstdc++ to CMAKE_CXX_FLAGS. With that, it compiles fine for me again.
For a complete patch including a fix for this issue see #14.
The include path for type_traits seems to not be in the list of include directories being passed to the compiler.
The file exists in several places:
The choice of or <tr1/type_traits> is controlled by HAS_TYPE_TRAITS and HAS_TR1_TYPE_TRAITS that are defined in:
But swapping between the two defines does not fix the issue (but does change the file that is attempted to be included, so it is being used).