So, the infamous error is back. The project is complaining that it can\'t find the main() method (that\'s what the error means, right).
However I do have a main, and
The default solution from SDL documentation:
tl;dr:
#define SDL_MAIN_HANDLED
#include "SDL.h"
full example:
Use this function to circumvent failure of SDL_Init() when not using SDL_main() as an entry point.
#define SDL_MAIN_HANDLED
#include "SDL.h"
int main(int argc, char *argv[])
{
SDL_SetMainReady();
SDL_Init(SDL_INIT_VIDEO);
...
SDL_Quit();
return 0;
}
Source: https://wiki.libsdl.org/SDL_SetMainReady