I know this is old, but if someone trips about it now.
Xcode by default creates the main function with declaration
int main(int argc, const char * argv[])
While the SDL is looking for a function with declaration
int main(int argc, char * argv[])
Note the lack of a constant in char * argv []. It appears that when the SDL looks for char * [], Xcode gives it const char * [] and that it cannot find the character.
I really want the SDL to stop renaming my functions! There must be a better solution, but hey, it will do for now.
source share