VMware共享windows下的文件夹,编译时出现“Value too large for defined data type”错误
程序员文章站
2022-07-15 11:01:23
...
错误如下:
cc1plus: error: */*: Value too large for defined data type
cc1plus: fatal error: */*: Value too large for defined data type
compilation terminated.
原因:mount时未加“nounix,noserverino”参数。
解决办法:修改“/etc/vmware-tools/services.sh”文件,并重启。原始及修改后如下:
# Mount all hgfs filesystems
vmware_mount_vmhgfs() {
if [ "`is_vmhgfs_mounted`" = "no" ]; then
if [ "`vmware_vmhgfs_use_fuse`" = "yes" ]; then
mkdir -p $vmhgfs_mnt
vmware_exec_selinux "$vmdb_answer_BINDIR/vmhgfs-fuse \
-o subtype=vmhgfs-fuse,allow_other $vmhgfs_mnt"
else
vmware_exec_selinux "mount -t vmhgfs .host:/ $vmhgfs_mnt"
fi
fi
}
# Mount all hgfs filesystems
vmware_mount_vmhgfs() {
if [ "`is_vmhgfs_mounted`" = "no" ]; then
if [ "`vmware_vmhgfs_use_fuse`" = "yes" ]; then
mkdir -p $vmhgfs_mnt
vmware_exec_selinux "$vmdb_answer_BINDIR/vmhgfs-fuse \
-o subtype=vmhgfs-fuse,allow_other $vmhgfs_mnt"
else
vmware_exec_selinux "mount -t vmhgfs .host:/ $vmhgfs_mnt -o nounix,noserverino"
fi
fi
}
上一篇: 哈工大C语言程序设计精髓第三周