Hi guys,
I don’t understand why, when I make something like this:
colors.h
SDL_Color *black;
colors.c
#include “colors.h”
black->r = 0;
I get a error…
tnx
Hi guys,
I don’t understand why, when I make something like this:
colors.h
SDL_Color *black;
colors.c
#include “colors.h”
black->r = 0;
I get a error…
tnx
Selon NighTiger :
I get a error…
You defined black as a pointer. Did you initialize it somewhere ?
If not, please read warnings displayed by your compiler (Or turn warnings on, or
change your compiler if it can not spot such trivial errors).
Xavier