I must have done it wrong...
Could you please tell me what is wrong with this?
typedef struct foo_t
{
int a = 0;
int b = 0;
int (foo_t);
} foo;
void init_foo(int c, int d)
{
foo.a = c;
foo.b = d;
}
Quote:
psp-gcc -I. -IC:/devkitpsp/psp/sdk/include -O2 -G0 -Wall -c -o main.o main.c
main.c:21: error: expected ':', ',', ';', '}' or '__attribute__' before '=' token
main.c: In function 'init_foo':
main.c:28: error: expected identifier or '(' before '.' token
main.c:29: error: expected identifier or '(' before '.' token
make: *** [main.o] Error 1
I know its probably simple but I just don't get it... :confused: :confused: :confused: