Skip to content

Compilation error icpc 14.0.3 #354

@mikeoconnor0308

Description

@mikeoconnor0308

Trying to compile on a unix system with icpc 14.0.3 (gcc version 4.8.1 compatibility).

Seems to dislike this line in setup.hpp

#elif GLM_COMPILER & (GLM_COMPILER_LLVM | GLM_COMPILER_APPLE_CLANG | GLM_COMPILER_INTEL)
#   define GLM_HAS_CXX11_STL __has_include("__config")
$ icpc core_type_vec3.cpp
In file included from glm/detail/func_exponential.hpp(132),
                 from glm/detail/func_geometric.inl(33),
                 from glm/detail/func_geometric.hpp(142),
                 from glm/geometric.hpp(35),
                 from core_type_vec3.cpp(34):
glm/detail/func_exponential.inl(42): error: function call is not allowed in a constant expression
  # if GLM_HAS_CXX11_STL
       ^

In file included from glm/detail/func_exponential.hpp(132),
                 from glm/detail/func_geometric.inl(33),
                 from glm/detail/func_geometric.hpp(142),
                 from glm/geometric.hpp(35),
                 from core_type_vec3.cpp(34):
glm/detail/func_exponential.inl(42): error: expression must have integral or enum type
  # if GLM_HAS_CXX11_STL
       ^
.....

Any thoughts?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions