[SDL] Loving SDL, but having trouble with multiple definitions of main

Sam Crow samuraileumas at yahoo.com
Mon Mar 19 13:04:46 PDT 2007


Sam Crow <samuraileumas <at> yahoo.com> writes:

> Are you aware of the fact that SDL defines a macro to wrap the main function? 
> It expects int main(argc, *argv[]) as its arguments (with the possible 
exception
> of using different variable names for the passed parameters).  If you try int
> main() or int main(void) or void main() or anything that doesn't include the
> arguments passed from the command line, it won't work.


Sorry, thats int main(int argc, char *argv[]) not int main(argc, *argv[]) :O .



More information about the SDL mailing list