cemyuksel/cyCodeBase

#include_next <Intrin.h> 'Intrin.h' file not found

Closed this issue · 1 comments

Hello,
I came across an error when using cyCodeBase with clang as compiler on MacOS.

In file included from ./cyVector.h:39:
In file included from ./cyCore.h:56:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/intrin.h:12:15: fatal error: 'Intrin.h' file not found
#include_next <Intrin.h>
              ^~~~~~~~~~
1 error generated.

I googled it and found a solution here. intrin.h is only supposed to be used on Windows platform. including <x86intrin.h> instead of <intrin.h> in cyCore.h file will solve this problem, I have tried it.

Thanks for letting me know. This is fixed in the latest update using the <immintrin.h> header instead.