Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
I am trying to compile a C++ project that is using xmmintrin.h. I am aware the CRT has been moved to windows kit for vs 2015. I have included the CRT in additional directories. However since xmmintrin.h is in the standard vc include path (where iostream is located), and the CRT has been moved I have failed to get the two paths to see each other.
Anyway way to solve this?
I've got the same issue, after spending hours on trying to install missing libs, packages, sdk's, ... The solution was to uninstall visual studio 2010, then delete the visual studio 2010 installation folder, then delete the VS 2010 registry keys. Only after having removed all these, I installed visual studio 2010 back on again, and I got all the .h and other files that were missing back on. Hooray.
Regards,
Not sure how to do this in the VS GUI, but somewhere in the project properties you'll have "Include Paths". These paths are passed with a
/I
to
cl.exe
.
What you want to do is add the path to xmmintrin.h to the end of these paths. This means that that directory will be searched last, so any headers that exist in the regular CRT will be given priority. And only if you don't have the header in CRT, your local paths, etc, will it search here. That should avoid any conflicts.
A dirtier solution would be to just create a copy of that file (and it's few dependencies) somewhere else and include from there.
–
Thanks for contributing an answer to Stack Overflow!
-
Please be sure to
answer the question
. Provide details and share your research!
But
avoid
…
-
Asking for help, clarification, or responding to other answers.
-
Making statements based on opinion; back them up with references or personal experience.
To learn more, see our
tips on writing great answers
.