MIC包含了offload.h文件之后,会出现很多问题,无论测试代码是什么,都会出现以下问题:

c:\program files (x86)\intel\composer xe 2013 sp1\compiler\include\offload.h(441): warning C4346: “__offload::shared_allocator::pointer”: 依赖名称不是类型
1> 用“typename”为前缀来表示类型
1>c:\program files (x86)\intel\composer xe 2013 sp1\compiler\include\offload.h(441): error C2143: 语法错误 : 缺少“;”(在“__offload::shared_allocator::allocate”的前面)
1>c:\program files (x86)\intel\composer xe 2013 sp1\compiler\include\offload.h(441): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files (x86)\intel\composer xe 2013 sp1\compiler\include\offload.h(441): error C2888: “shared_allocator::pointer pointer”: 不能在命名空
间“__offload”内定义符号

求指教!!!!!!!!!!

这个库跟你的编译器版本不兼容。看是否用对应你你编译器版本的库