您的位置:首页 > 产品设计 > UI/UE

GCC编译“Value too large for defined data type”错误解决办法

2016-08-11 16:38 721 查看
今天在Linux上编译通过mount来访问的windows共享目录下的C代码的时候,总是出现

[plain] view
plain copy

Value too large for defined data type  

错误,但是检查了一下代码,没有用的到什么特殊的函数,并且同样的代码在别的机器上就可以编译通过,或者把代码从共享目录下拷贝到本地也可以编译,就是在共享目录目录下不能编译。后来就想到可能是mount命令导致的这个问题。查了一些资料,发现在mount的时候加上“nounix,noserverino”选项后,就不再出现这个问题了,因此完整的mount命令可能如下:

[plain] view
plain copy

$ sudo mount -o "username=<username>,password=<password>,uid=<uid>,gid=<gid>,dir_mode=0755,file_mode=0755,nounix,noserverino" //<host>/share /share
 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐