Hi, new to C++ and trying to install SFML. I Followed the getting started tutorial but think I might have missed something. I'm sure moderators are sick of seeing this question but i cant seem to find the solution.
Im using Code::blocks 10.05. and believe mingw is installed correctly. I can run any typical console program.
Global Compiler search directories are set to the SFML include and lib folders. Project Build options compiler paths are also pointing there.
Under project build options 'Test - release':
Linking one library; 'libsfml-system.a' One linker option '-libsfml-system'
Just trying to compile the "First SMFL program" tutorial
#include <iostream>
#include <SFML\System.hpp>
int main()
{
sf::Clock Clock;
while (Clock.GetElapsedTime() < 5.f)
{
std::cout << Clock.GetElapsedTime() << std::endl;
sf::Sleep(0.5f);
}
return 0;
When i try to run it gives me the error;
fatal error: SFML\System.hpp: No such file or directory
It feels to me like in the line
#include <SFML\System.hpp>
SFML is a path variable
If i replace SFML with the path to SFML include folder it will continue to compile until it comes to the headers within system.hpp which also have the same #include <SFML\etc.> setup.
So basically where is this variable set. Global variables , User variables or am I not even in the ballpark?