错误:Error3 error C2485: '__restrict' : unrecognized extended attribute f:\program files\microsoft visual studio 8\vc\include\stdlib.h 638
解决办法:我在用VC编译某开源库时也遇到这个问题
参考这个帖子
http://www.codeproject.com/Messages/2651289/Re-i-got-a-compiling-error-like-error-C2485-__rest.aspx
搜索"#define restrict __restrict",然后将之注释即可,似乎VC本身已经有restrict,而不含__restrict
在使用VC编译开源库时遇到Error3errorC2485,原因是不识别__restrict扩展属性。解决方案是查找并注释掉#definerestrict__restrict的行,因为VC本身已经支持restrict,不需要额外的__restrict。
1756

被折叠的 条评论
为什么被折叠?



