我有,我已经包括在库路径Linux上的C++项目:Intel <math.h> vs C <math.h>?
/opt/intel/include/
,这样我可以使用特定的英特尔库。不过,我也希望使用标准的C/C++ math.h,以便我可以调用pow(x,y)
;
我收录了<math.h>
并使用了using namespace::std
,然后用pow(x,y)
拨打了电话。编译器(gcc4.7)抱怨:
/opt/intel/include/math.h:27:3: error: #error "This Intel is for use with only the Intel compilers!"
如何指定,我指的是C/C++文件math.h pow()
,而不是英特尔pow()
?
[Library include include path has same header name](http:// stackoverflow。com/questions/5168242/library-include-paths-with-same-header-name) – Jon