Problems encountered during c ++ compilation in linux

Source: Internet
Author: User
Some problems encountered during c ++ compilation in linux-general Linux technology-Linux programming and kernel information. The following is a detailed description. 1. If you use different users to log on to linux, compilation of the same project may fail. This is because different users have different permissions. For example, if you use the root user to compile the project, then exit to use the normal user and then compile the project, the compilation will fail due to permission issues, therefore, it is recommended that you always use the same user during the compilation and modification of a project so that the above problems will not occur.

2. This is also caused by permission issues. I did not pay attention to this issue because I have never encountered such a problem before. The problem occurs in this way. Use the ftp tool to upload the batch processing file to linux, and then execute the batch processing command. The "Permission declined" prompt appears, you only need to modify the permission that prompts you to have the problem.

3. Note that the include paths written in the makefile file are sequential, if the include sequence introduced during compilation is inconsistent with the include path sequence in the makefile file, a compilation error may occur.

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.