Hello, I'm relatively new to SDL and I'm having a pretty annoying issue right now. Whenever I initialise a Player object, the game instantly quits upon execution. However, if I don't, the game runs fine.
You don't appear to have much error handling. You have some error checking, but the errors aren't correctly propagated all the way up. Have you tried running the code in a debugger? This will allow you to pinpoint the line that is causing the problem.