On the program_invocation_short_name in C language

Source: Internet
Author: User

The error originates from compiling the Eudev with the g++ cross-compilation toolchain. After a search, it was found that there is an extern definition of program_invocation_short_name in the errno.h header file.

After viewing the source code of Eudev, found that the relevant source files are included errno.h this header file.

Then go through the differences between the errno.h in the two toolchain, and find that the conditional compilation of the relevant extern statement is different.

Try to modify the source code of the Eudev, so that it satisfies the conditions in the compilation of conditions, and found that it will be involved in a series of errors, in order to compile the source code can be successful, simply use the program_invocation_short_name of the variable in the place of the execution of the string instead, for example, When compiling the Eudev, replace the program_invocation_short_name variable with "Udev" directly.

On the program_invocation_short_name in C language

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.