I've recently managed to set up SFML for qt creator however upon compilation of the code bellow, I get three strange errors which have nothing to do with my program. I must specify other C++ programs run fine. This is the 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;
}
The errors are as follows:
f:\SFML-1.6\include\SFML\System\Unicode.hpp:82: error: C2535: 'sf::Unicode::Text::Text(const wchar_t *)' : member function already defined or declared
f:\SFML-1.6\include\SFML\System\Unicode.hpp:87: error: C2535: 'sf::Unicode::Text::Text(const std::wstring &)' : member function already defined or declared
f:\SFML-1.6\include\SFML\System\Unicode.hpp:99: error: C2535: 'sf::Unicode::Text::operator std::wstring(void) const' : member function already defined or declared
Any idea what may be causing this?
EDIT:
I should also mention I never touched the files which give the errors. All I tried was to paste the sample code from the SFML website which resulted in the errors above. I believe I've set up SFML correctly.
EDIT2: I'm using Windows XP SP3, Mingw compiler