1

我调用了下面的函数,传递了一个结构指针。我在指向 currentTableItem -> 请帮助的地方收到错误“取消引用指向不完整类型的指针”。

4

1 回答 1

1

似乎struct md_CamsLatchTblStruct此时编译器不知道完整的声明,可能是因为您使用了前向声明:

编译器看到:

struct md_CamsLatchTblStruct;

编译器看不到(未包含/定义在另一个源文件中):

struct md_CamsLatchTblStruct {
     int index;
     int addr;
     int mask;
     int startBit;
     // ..
};
于 2012-04-19T17:56:44.530 回答