Aye - the problem is that you're linking libSDL and libSDLmain in the wrong order (yes, that's right >_< It's a mingw ld bug I think)
You want to link them the other way around.
- Exo
You want to link them the other way around.
- Exo
The reason why it does that is because there's no default case, so if one of those other values were encountered by the switch nothing would happen, and this might not be the desireable outcome.KillerShots said:Yeah, I'd seen some odd warnings where just because I did a switch on an enum, it expected me to cover all possible enums within that switch (and gave a warning for each one not covered)... that just plain doesn't make sense to do.
Yeah, I'm using -Wall, -W, -Wshadow and -Wno-long-long. In fact, I have absolutely no idea what they do since I'm using the makefile from FB Alpha's source modified to fit NeoPop's files.Exophase said:Is this being compiled with -Wall or other obscure -W flags? A lot of things can be warnings without necessarily being bad (and GCC sometimes catches weird things) but it's good to be warning free if possible.
- Exo