I'm sure you guys get a lot of questions like this, but I have searched and have not been able to find an answer. Also please note that I'm very new to this.
I'm following the tutorials and have run into problems on the very first example code:
#include <SFML/System.hpp>
#include <iostream>
int main()
{
sf::Clock Clock;
while (Clock.GetElapsedTime() < 5.f)
{
std::cout << Clock.GetElapsedTime() << std::endl;
sf::Sleep(0.5f);
}
return 0;
}
In debug, it returns "SFML/System.hpp: No such file or directory" and the rest of the errors are just "sf has not been declared", etc.
I have followed the tutorial exactly as it is stated, and I chose to go with copying the files into the include and lib folders of c::b. My include directory looks like this:
And I copied all of the *.a files from SFML into the lib folder of c::b.
I then went to the project's build options and put:
The part in the Link Libraries: section is not in the tutorial, but from reading previous posts about this kind of stuff, I thought it is what I was supposed to do. But it gives the same error without that part.
I'm on windows XP with code::blocks-10.05.
Any help is greatly appreciated, and go easy on me, I'm a noob