我使用wxwidget库,我有以下问题:的XCode 4.5 'TR1/type_traits' 找不到文件
#if defined(HAVE_TYPE_TRAITS)
#include <type_traits>
#elif defined(HAVE_TR1_TYPE_TRAITS)
#ifdef __VISUALC__
#include <type_traits>
#else
#include <tr1/type_traits>
#endif
#endif
这里的#include是找不到的。我使用Apple LLVM编译器4.1。 (用C++ 11方言)。 如果我切换到LLVM GCC 4.2编译器,那里没有错误,但主要问题是所有的C++ 11包含都不起作用。
我该如何使用GCC编译器,但使用C++ 11标准还是让LLVM能够找到?
任何帮助将非常感激。
谢谢,这个问题解决了 – Aranir
谢谢 - 有同样的问题,并更改为GNU库解决了这个问题对我来说:-) –