Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我调用了下面的函数,传递了一个结构指针。我在指向 currentTableItem -> 请帮助的地方收到错误“取消引用指向不完整类型的指针”。
似乎struct md_CamsLatchTblStruct此时编译器不知道完整的声明,可能是因为您使用了前向声明:
struct md_CamsLatchTblStruct
编译器看到:
struct md_CamsLatchTblStruct;
编译器看不到(未包含/定义在另一个源文件中):
struct md_CamsLatchTblStruct { int index; int addr; int mask; int startBit; // .. };