I have some fairly basic code that was copied from the tutorials and I can't seem to get anything to work properly, It's just exiting with exit code 0.
I'm using Windows 10, Clion, and 32bit MinGW that was provided on the download page with the 32bit SFML counterpart.
Image for reference:
http://i.imgur.com/704iEjm.pngI've tried with multiple modules however this is the code I'm currently attempting to use:
#include "conio.h"
#include <iostream>
#include <SFML/System.hpp>
#include <SFML/Window.hpp>
int main()
{
sf::Clock clock; // starts the clock
sf::Time elapsed1 = clock.getElapsedTime();
std::cout << elapsed1.asSeconds() << std::endl;
clock.restart();
sf::Time elapsed2 = clock.getElapsedTime();
std::cout << elapsed2.asSeconds() << std::endl;
getch();
return 0;
}
The only ways I have managed to make this run is by removing the SFML code or by making it unreachable.
As of writing this it's 2am and I have been attempting this for 8-10 hours, so I'll be sleeping for the next few hours.
If my explanation of what happens is inadequate (as they often are) I can make a short video in the morning.