GCC compile "Value too large for defined data type" error resolution

Source: Internet
Author: User

Today, when compiling the C code in a Windows share directory that is accessed via mount on Linux, there is always

Value too large for defined data type
Error, but check the code, do not use any special functions, and the same code on the other machine can be compiled, or the code from the shared directory copy to the local can also compile, that is, the shared directory directory can not compile. It was later thought that the problem might be caused by the Mount command. After looking up some data and finding that the "Nounix,noserverino" option was added to the mount, the problem no longer arose, so the complete Mount command might be as follows:
$ sudo mount-o "username=<username>,password=<password>,uid=<uid>,gid=<gid>,dir_mode=0755 , File_mode=0755,nounix,noserverino "// 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.