Storage size of ' xxx ' isn ' t known one of the possible causes of problems

Source: Internet
Author: User

Storage size of ' value ' isn ' t known one of the possible causes of problems

It is possible that the header file is not included, so this problem occurs
There are several ways to find out why:
1, if the structure type, type whether or not write wrong;
2, the variable name is not written wrong;
2. Whether the header file is included in the document;
3. Is there a problem with the precompiled declaration of the header file?

Here's a very strange phenomenon, compiled with Eclipse MinGW GCC,

There are #ifdef Win32 #endif in the header file, which defines some structure,

However, if there is no #ifdef Win32 in the. c file, the definition of the struct cannot be found, and the above inexplicable error occurs.

And if you add #ifdef, you'll be fine, don't understand, what do you mean?

Storage size of ' xxx ' isn ' t known one of the possible causes of problems

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.