Why can’t you stop buying 618?From the technical dimension to explore>>>
Question 1: invalid use of incomplete type
This problem indicates that the compiler does not know the specific implementation of struct or class used. It usually occurs in the following cases: suppose we have a class some defined in some. H, implemented in some. CPP, and we need to use the method of some in other. CPP, so we can declare a class some in other. H, and declare the method to be used, This will lead to the above problem. The way to solve this problem is to include some. H in other.cpp, so that the compiler will find the specific definition of class some according to the header file, and the problem will be solved
Similar Posts:
- C1189 #error: “No Target Architecture”
- [Solved] VS winsock.h and ws2def.h a large number of redefined error
- About the compilation error “dereferencing pointer to incomplete type
- Is not an enclosing class appears in creating a Java class
- The reason and solution of the appearance of invincible invalid bean definition with name
- [Solved] error: ‘INT_MAX’ was not declared in this scope
- fatal error C1010: unexpected end of file while…
- OO ALV: How to realize red box positioning of field error
- [How to Solve] expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__
- PHP Fatal error: Cannot redeclare class