My guess is that the program can’t find the image that should be loaded.

You haven’t provided a file extension in the SDL_LoadBMP function, which is executed inside the loadMedia function.
Change gXOut = SDL_LoadBMP("test_7/hqdefault");
into gXOut = SDL_LoadBMP("test_7/hqdefault.bmp");
and see if it works.

As you can see in the console, the image file still can’t be found. Make sure that the image file is in the correct folder and that the filepath (test_7/hqdefault.bmp) is correct.

If you execute the program from within Code::Blocks, make sure that the directory named test_7 is placed in the same directory as your source files (*.h and *.cpp) and that your image file is placed in that test_7 directory.

If you execute the program by manually double clicking on the exe file in the Debug folder, make sure that the directory named test_7 is placed in the same directory as your exe file and that your image file is placed in that test_7 directory.