I am making a Graphical Client in C with SDL library and I have a problem when I want to set my SDL_Color
type.
I declare my variable as
SDL_Color color;
color = {255, 255, 255};
/* rest of code */
then gcc tells me:
25:11: error: expected expression before ‘{’ token color = {0, 0, 0};
I found pretty good answers on C++ cases with some operator overloading but I'm afraid I really don't know how to fix this one in C.