#include <SFML/System.hpp>
#include <iostream>
using namespace sf;
using namespace std;
int main()
{
float f=0.5;
Clock Clock;
while (Clock.GetElapsedTime() < 5.f)
{
std::cout << Clock.GetElapsedTime() << std::endl;
Sleep(f);
}
return 0;
}
this is the code I am using and i am getting a runtime error
"The application was unable to start correctly (0x0150002),Click Ok to close the application."
I have copied all the dll's properly. As well as included sfml-windows-d.lib, sfml-system-d.lib.
system is "/SUBSYSTEM:CONSOLE"
installed all the redistribute packages required.
Now can some please help me with the problem.
I am using Visual studio 2010 ultimate
and windows 7 64 bit architecture.
And also i am using version 1.6 of sfml
now i have changed everything for SFML 2
now i am getting these errors
1>main.obj : error LNK2001: unresolved external symbol "public: static class sf::RenderStates const sf::RenderStates::Default" (?Default@RenderStates@sf@@2V12@B)
1>main.obj : error LNK2001: unresolved external symbol "public: static class sf::Color const sf::Color::Green" (?Green@Color@sf@@2V12@B)
1>C:\Users\Voldy\Documents\Visual Studio 2010\Projects\sfml\Debug\sfml.exe : fatal error LNK1120: 2 unresolved externals