"Hello world" with SDL - No output on run
Answered
Hello, I am new to CLion and CMake and was trying to set up SDL2. I am having a problem that the "Run" button does not output anything with a simple hello world, this only happens when I add the final line in CMakeLists.txt (target_link_libraries).
Another thing which I don't understand is that the "Debug" button, outputs hello world just fine.
Problem 2 - No option to run when including SDL2:
Here is my main.cpp without SDL included, the debug button outputs Hello World.
Now, here is what happens when i include SDL2:
The run button went away, here is what happens when I try to run/debug the project:
Any help is appreciated, thanks.
Please sign in to leave a comment.
Hello!