I've been trying to debug and run this piece of 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;
}
but i always get an error, i've done everything that was needed to be done in this tutorial:
http://www.sfml-dev.org/tutorials/1.5/start-vc.php1>------ Build started: Project: SFML, Configuration: Debug Win32 ------
1>Linking...
1>sfml-system.dll : fatal error LNK1107: invalid or corrupt file: cannot read at 0x2A8
1>Build log was saved at "file://c:\Users\Miki Davidsen\Dokumenter\Visual Studio 2008\Projects\SFML\SFML\Debug\BuildLog.htm"
1>SFML - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Is it the sfml-system.dll that is invalid or corrupt?