 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
psiko_scweek
Joined: 12 Nov 2005 Posts: 42
|
Posted: Mon Sep 04, 2006 9:42 am Post subject: compiler error? |
|
|
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 |
|
 |
dsn

Joined: 09 Nov 2005 Posts: 47 Location: Indianapolis, Indiana, USA
|
Posted: Sat Sep 09, 2006 1:25 pm Post subject: |
|
|
| 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 |
|
 |
|
|
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
|