How to check the gcc compiler error message

Source: Internet
Author: User
For details about how to check the gcc compiler error message-Linux general technology-Linux programming and kernel information, see the following. For example, when gcc is used for compiling, an error is reported. only an approximate number can be found each time based on the error message. which line of error is displayed in the error message? In this way, you can locate the line and view it more conveniently.
This is my error message. it is used as an example. how can I see the error message here? Please give me some advice!
[Yh1 @ lzf 3] $ gcc-o 3-10 3-10.c
3-10.c: In the 'main' function:
3-10.c: 30: 68: Error: 'name' is not declared (used for the first time in this function)
3-10.c: 30: 68: Note: Each undeclared identifier is reported only once in the function it appears.
Related Article

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.