Saturday, May 10, 2014

no matching function for call to ‘glutinit’ error in Xcode


When you create a default project in Cocoa template of Xcode the main function is generated accordion to the following:
int main(int argc, const char * argv[])

You can solve this if you review your main-function and remove "const" from the following main function:
int main(int argc, char * argv[])
and build again.




No comments:

Post a Comment