So I already know why this error happens, inside the SDL_main.h file a 'main' macro is being created, which will cause problems with your actual main function.
It's just that none of the obvious workarounds seem to be helping me. I have tried:
* The application's main() function must be called with C linkage,
* and should be declared like this:
* #ifdef __cplusplus
* extern "C"
* int main(int argc, char *argv)
Try also this at the top of your
That is supposed to cause SDL to skip all of its
Note that it needs to happen before you include
#define SDL_MAIN_HANDLED #include "SDL2/SDL.h"