Question: I'm trying to use Code::Blocks to build a game engine and when running the game in the editor if I include the following lines I get an error while not including them works but everything I can find says I need these lines. Is this something weird about C::B and if so is there a better development tool I should be using? (Besides VS or VSC because they don't want to work on my system)
if (SDL_Init(SDL_INIT_VIDEO) != 0) {
std::cerr << "SDL_Init Error: " << SDL_GetError() << std::endl;
return 1;
}
It prints SDL_Init Error: but SDL_GetError() seems to be returning an empty string.