forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

compiler error?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
psiko_scweek



Joined: 12 Nov 2005
Posts: 42

PostPosted: Mon Sep 04, 2006 9:42 am    Post subject: compiler error? Reply with quote

Whenever I try to compile my source after I add the following Code:


Code:
gfx_apply_surface(Objects[1].x,Objects[1].y,gfx_ball,gfx_screen);


I get a compiler error.

here is the gfx_appy_surface function code.

Code:

void gfx_apply_surface(int x, int y, SDL_Surface* source, SDL_Surface* destination )

SDL_Rect offset; 
offset.x = x;
offset.y = y;
SDL_BlitSurface( source, NULL, destination, &offset );
}


and here is the code for the object structure.
Code:
typedef struct{
int x;
int y;
SDL_Surface *graphic;
int graphicx;
int graphicy;
int height;
int width;
int solid;
}Ob_Objects;


and the error i get is:

main.c142 :Internal Compiler Error: in Propagate_one_insn, at flow.c1690
Back to top
View user's profile Send private message Yahoo Messenger
dsn



Joined: 09 Nov 2005
Posts: 47
Location: Indianapolis, Indiana, USA

PostPosted: Sat Sep 09, 2006 1:25 pm    Post subject: Reply with quote

Usually an internal compiler error means one of three things: the compiler ran out of memory; your seemingly innocent code accidentally uses a preposterous amount of stack space; or there's a bug in the compiler. One way to narrow down what's happening is to recompile with less aggressive optimization settings (change -O2 to -O1, for example).
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group