OK, I have this piece of code:
void method(void* parameter)
{
1: struct Data* dataOfReference =(struct Data*)parameter ;
2: Info tmpInfo=(*dataO fReference).pay load.data;
3: char* message;
....
}
Why does the compiler (gcc) complain about line 2?
'error: dereferencing pointer to incomplete type'
Shouldn't it be correct? I have a pointer, and I dereference it with
'*'...
Thanks
void method(void* parameter)
{
1: struct Data* dataOfReference =(struct Data*)parameter ;
2: Info tmpInfo=(*dataO fReference).pay load.data;
3: char* message;
....
}
Why does the compiler (gcc) complain about line 2?
'error: dereferencing pointer to incomplete type'
Shouldn't it be correct? I have a pointer, and I dereference it with
'*'...
Thanks
Comment