Code: Select all
#include <genesis.h>
#include "lyapanimate.h"
#include "globalvar.h"
#include "gfx.h"
struct myLyap
{
FIX16 x;
FIX16 y;
FIX16 dx;
FIX16 dy;
} lyap[16];
Code: Select all
||=== Build: default in agressor (compiler: SGDK) ===|
src\lyapanimate.c|11|error: syntax error before "FIX16"|
src\lyapanimate.c|11|warning: no semicolon at end of struct or union|
src\lyapanimate.c|12|warning: type defaults to `int' in declaration of `y'|
src\lyapanimate.c|12|warning: data definition has no type or storage class|
src\lyapanimate.c|13|error: syntax error before "dx"|
src\lyapanimate.c|13|warning: type defaults to `int' in declaration of `dx'|
src\lyapanimate.c|13|warning: data definition has no type or storage class|
src\lyapanimate.c|14|error: syntax error before "dy"|
src\lyapanimate.c|14|warning: type defaults to `int' in declaration of `dy'|
src\lyapanimate.c|14|warning: data definition has no type or storage class|
src\lyapanimate.c|15|warning: type defaults to `int' in declaration of `lyap'|
src\lyapanimate.c|15|warning: data definition has no type or storage class|
src\lyapanimate.c||In function `lyap_anim':|
src\lyapanimate.c|29|warning: passing arg 2 of `SPR_initSprite' discards qualifiers from pointer target type|
src\lyapanimate.c|43|error: request for member `x' in something not a structure or union|
src\lyapanimate.c|44|error: request for member `y' in something not a structure or union|
src\lyapanimate.c|45|error: request for member `dx' in something not a structure or union|
src\lyapanimate.c|46|error: request for member `dy' in something not a structure or union|
src\lyapanimate.c|47|error: request for member `x' in something not a structure or union|
src\lyapanimate.c|47|error: request for member `y' in something not a structure or union|
src\lyapanimate.c|55|error: request for member `x' in something not a structure or union|
src\lyapanimate.c|55|error: request for member `dx' in something not a structure or union|
src\lyapanimate.c|56|error: request for member `y' in something not a structure or union|
src\lyapanimate.c|56|error: request for member `dy' in something not a structure or union|
src\lyapanimate.c|57|error: request for member `dy' in something not a structure or union|
src\lyapanimate.c|59|error: request for member `x' in something not a structure or union|
src\lyapanimate.c|59|error: request for member `y' in something not a structure or union|
src\lyapanimate.c||In function `rain':|
src\lyapanimate.c|101|warning: passing arg 2 of `SPR_initSprite' discards qualifiers from pointer target type|
||=== Build failed: 16 error(s), 11 warning(s) (0 minute(s), 0 second(s)) ===|
Code: Select all
#include <genesis.h>
#include "lyapanimate.h"
#include "globalvar.h"
#include "gfx.h"
struct myLyap
{
int x;
int y;
int dx;
int dy;
} lyap[16];