LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   error: dereferencing pointer to incomplete type (https://www.linuxquestions.org/questions/programming-9/error-dereferencing-pointer-to-incomplete-type-550526/)

ChullDouvre 05-01-2007 10:03 PM

error: dereferencing pointer to incomplete type
 
Hey, there. What's going on here?!

Code:

if(S_OBJECTS[i]!=NULL)apply_surface(S_OBJECTS[i]->x,S_OBJECTS[i]->y,S_OBJECTS[i]->sprites[S_OBJECTS[i]->cursprite],screen);
object array defined here:
Code:

struct object *S_OBJECTS[15];
When compiled it outputs:

Code:

error: dereferencing pointer to incomplete type
error: dereferencing pointer to incomplete type
error: dereferencing pointer to incomplete type
error: dereferencing pointer to incomplete type


ChullDouvre 05-01-2007 10:18 PM

Not as popular a forum as the others, eh?

graemef 05-02-2007 12:16 AM

Quote:

Originally Posted by ChullDouvre
Hey, there. What's going on here?!

You're writing code without any regard to the enter key, not illegal but hard to read.

If you want a more useful answer you might need to explain the class object.


All times are GMT -5. The time now is 11:20 PM.