1. 程式人生 > >共享資料夾內編譯報”Value too large for defined data type”錯誤的解決辦法

共享資料夾內編譯報”Value too large for defined data type”錯誤的解決辦法

【錯誤描述 】

如題編譯時報Value too large for defined data type錯誤,並且將程式拷貝到虛擬機器內部編譯時是沒有錯誤的(或者在其他機器上編譯是沒有問題的)

【解決方法】

掛載時新增“nounix,noserverino”選項後就可以了。

//取消掛載的共享目錄
# sudo umount -t vmhgfs .host:/ /mnt/hgfs
//重新掛載共享目錄
# sudo mount -t vmhgfs -o nounix,noserverino .host:/ /mnt/hgfs