GCC: dereferencing pointer to incomplete Type Error

Source: Internet
Author: User

/*************************************** ******************************* Author: samson * Date: 07/27/2014 * Test Platform: * mint 15 * GNU bash, version 4.2.45 ************************************** ******************************/

The following error occurs during GCC Compilation:

What is the error of dereferencing pointer to incomplete type?

Your Pointer has a type, which is incomplete. That is to say, you only give the declaration of this type and do not give its definition. Most of your types here are structured, federated, and so on.


This error is caused by the fact that the header file of the variable definition referred to by a struct or joint field name is not introduced into the current C code, you only need to find the struct or joint definition header file of the variable corresponding to the error, and include these header files to solve this problem;




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.