当前位置: 代码迷 >> 综合 >> VMware共享windows下的文件夹,编译时出现“Value too large for defined data type”错误
  详细解决方案

VMware共享windows下的文件夹,编译时出现“Value too large for defined data type”错误

热度:10   发布时间:2024-02-21 12:47:33.0

错误如下:

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" ]; thenif [ "`vmware_vmhgfs_use_fuse`" = "yes" ]; thenmkdir -p $vmhgfs_mntvmware_exec_selinux "$vmdb_answer_BINDIR/vmhgfs-fuse \-o subtype=vmhgfs-fuse,allow_other $vmhgfs_mnt"elsevmware_exec_selinux "mount -t vmhgfs .host:/ $vmhgfs_mnt"fifi
}

 

# Mount all hgfs filesystems
vmware_mount_vmhgfs() {if [ "`is_vmhgfs_mounted`" = "no" ]; thenif [ "`vmware_vmhgfs_use_fuse`" = "yes" ]; thenmkdir -p $vmhgfs_mntvmware_exec_selinux "$vmdb_answer_BINDIR/vmhgfs-fuse \-o subtype=vmhgfs-fuse,allow_other $vmhgfs_mnt"elsevmware_exec_selinux "mount -t vmhgfs .host:/ $vmhgfs_mnt  -o nounix,noserverino"fifi
}

 

  相关解决方案