[SDL] SDL_main

gtxayf1q001 at sneakemail.com gtxayf1q001 at sneakemail.com
Mon Sep 2 14:57:01 PDT 2002


#define main SDL_main

Is this really necessary and great idea? It's causing
me headache when I'm calling stuff from other libraries:

#include "SDL.h"
#include "MyLibrary.h"

myObj.main();

unresolved external symbol "public: void __thiscall MyClass::SDL_main(void)"

Took me a while to figure this one out. (Maybe I'm slow.)

Admittedly, methods named "main" may not be so common. And
there are workarounds. But I still don't like it.





More information about the SDL mailing list