如何处理“ intrin.h:没有这样的文件或目录”? [英] How to cope with "intrin.h: No such file or directory"?

查看:678
本文介绍了如何处理“ intrin.h:没有这样的文件或目录”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

#include <intrin.h>

上面将报告:

intrin.h: No such file or directory

似乎一个MSVC头文件,但是我正在使用eclipse cdt,我该如何使它可用?是否需要一些库?

Which seems to be a MSVC header file,but I'm using eclipse cdt,how can I make it available?Is there some libraries needed?

cdt使用MinGW进行编译,但是有否 intrin.h

cdt uses MinGW for compiling,but there is no intrin.h:

D:\Tools\MinGW\lib\gcc\mingw32\3.4.5\include>dir *intrin.h

2006-01-17  21:47            34,528 emmintrin.h
2006-01-17  21:47            22,281 mmintrin.h
2006-01-17  21:47             3,586 pmmintrin.h
2006-01-17  21:47            30,925 xmmintrin.h

有人可以帮忙吗?

推荐答案

我有同样的问题。使用eclipse + cdt + mingw32-gcc7.2 + glm(openGL数学自由)
我将 #include< intrin.h> 替换为 #include< x86intrin.h> 将标志添加到gcc -msse2即可,一切正常。

I have same problem. using eclipse + cdt + mingw32-gcc7.2 + glm (openGL math libraty) I replace #include <intrin.h> with #include <x86intrin.h> add flag to gcc -msse2 and all worked.

这篇关于如何处理“ intrin.h:没有这样的文件或目录”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆