cemyuksel / cyCodeBase

An open source programming resource intended for graphics programmers.
MIT License
271 stars 60 forks source link

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

Closed ruiwng closed 2 years ago

ruiwng commented 2 years ago

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 instead of in cyCore.h file will solve this problem, I have tried it.

cemyuksel commented 2 years ago

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