Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'type_traits' file not found #351

Closed
skylook opened this issue Jul 4, 2015 · 2 comments
Closed

'type_traits' file not found #351

skylook opened this issue Jul 4, 2015 · 2 comments
Assignees
Labels
Milestone

Comments

@skylook
Copy link

skylook commented Jul 4, 2015

Cannot be compiled with libstdc++ under Xcode 6.3. It shows with error:

thirdparty/glm/detail/type_int.hpp:37:11: 'type_traits' file not found

@Groovounet
Copy link
Member

I think the issue comes from this code:

#if GLM_PLATFORM == GLM_PLATFORM_ANDROID
#   define GLM_HAS_CXX11_STL 0
#elif GLM_COMPILER & (GLM_COMPILER_LLVM | GLM_COMPILER_APPLE_CLANG)
#   define GLM_HAS_CXX11_STL __has_include("__config")
#else
#   define GLM_HAS_CXX11_STL ((GLM_LANG & GLM_LANG_CXX0X_FLAG) && \
        ((GLM_COMPILER & GLM_COMPILER_GCC) && (GLM_COMPILER >= GLM_COMPILER_GCC48)) || \
        ((GLM_COMPILER & GLM_COMPILER_VC) && (GLM_COMPILER >= GLM_COMPILER_VC2013)) || \
        ((GLM_COMPILER & GLM_COMPILER_INTEL) && (GLM_COMPILER >= GLM_COMPILER_INTEL15)))
#endif

Do you know whether it's possible to detection which STL implementation is used? libstdc++ or libc++?

Thanks,
Christophe

@Groovounet Groovounet reopened this Jul 19, 2015
@Groovounet Groovounet added the bug label Jul 19, 2015
@Groovounet Groovounet added this to the GLM 0.9.7 milestone Jul 19, 2015
@Groovounet Groovounet self-assigned this Jul 19, 2015
@Groovounet
Copy link
Member

This issue should be fixed in master branch for GLM 0.9.7

Thanks for contributing!
Christophe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants