LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 05-01-2007, 11:03 PM   #1
ChullDouvre
LQ Newbie
 
Registered: Apr 2007
Distribution: Ubuntu. Slack before that.
Posts: 4

Rep: Reputation: 0
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
 
Old 05-01-2007, 11:18 PM   #2
ChullDouvre
LQ Newbie
 
Registered: Apr 2007
Distribution: Ubuntu. Slack before that.
Posts: 4

Original Poster
Rep: Reputation: 0
Not as popular a forum as the others, eh?
 
Old 05-02-2007, 01:16 AM   #3
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
gcc 4.0.0 warning: dereferencing type-punned pointer will break strict-aliasing rules stephenwalter Programming 4 06-10-2009 05:06 AM
tai64nlocal.c:55: error: dereferencing pointer to incomplete type ExCIA Linux - General 1 03-31-2009 10:49 AM
Error: dereferencing pointer to incomplete type cynthia_thomas Programming 1 05-01-2006 09:10 AM
redeferenced pointer to incomplete type Aldair1808 Programming 1 11-28-2005 04:23 PM
C error "dereferencing pointer to incomplete type" lucs Slackware 6 02-21-2005 10:33 AM


All times are GMT -5. The time now is 01:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration