1
Général / Re: SFML reference error (CMake, Clion, Windows and MinGW)
« le: Avril 27, 2017, 12:44:40 am »
I'm confused. What does your main.cpp look like? Is it the same as above?
In a stack overflow comment you stated the program exits with code 0. If your main.cpp is the same as above this is good. You need to change your main.cpp to look like my example. You don't have a loop to display the window, your code only declares a window object, it doesn't use it.
Without an event loop it will just exit with code 0 and maybe flash a console window.
In a stack overflow comment you stated the program exits with code 0. If your main.cpp is the same as above this is good. You need to change your main.cpp to look like my example. You don't have a loop to display the window, your code only declares a window object, it doesn't use it.
Without an event loop it will just exit with code 0 and maybe flash a console window.