A question - when installing SDL2 using vcpkg and visual studio and trying to follow the LazyFoo Tutorials, I get some linking errors, namely
With some help and googling, I was able to make it compile and window to display by adding #define SDL_MAIN_HANDLED before the other includes.
However, what is not clear to me, do I need to add SDL_SetMainReady() in the beginning of my main function?
As far as I am aware I need to run it as a work around for SDL_Init failure. Does it mean that if I run SDL_Init manually and do all the checks myself, then it is unnecessary?
PS: There is no problem when I link everything manually, myself. The problem is only with vcpkg installation