Quantcast
Channel: Intel® Software - Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1175

std::align_val_t error with c++17 on Mac

$
0
0

Dear Intel-Community,

I’m having trouble compiling any project with std=c++17 on Mac with the latest Intel Compiler 18 Update 2. Even a fresh hello world console project gives me the error:

enum "std::align_val_t" was previously declared with a different base type
  enum class _LIBCPP_ENUM_VIS align_val_t : size_t { };
                              ^

Are there any additional flags that need to be set in order to compile it with the latest C++ language features?

System specs:
Intel Compiler 18 Update 2
Xcode 9.2 (9C40b)
Mac OS Sierra 10.12.6

Best regards,
Daniel


Viewing all articles
Browse latest Browse all 1175

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>