结构指针的问题(在线等)
我定义了两个结构如下:
typedef struct test1_struct {
int file_descriptor;
} test1;
1typedef struct test2_struct {
2
3 int statement_id;
4 struct test1 * test;
5 char * execommand;
6
7} test2;
8
9int main(){
10int fd;
11test2 *newtest;
12newtest = (test2*)(参数1);
13fd = newtest->test->file_descriptor;
........}
编译出错:13,dereferencing pointer to incomplete type
这条出错是啥意思?请问如何解决