1
General / namespace errors
« on: October 20, 2009, 05:21:01 pm »
I'm trying to run this piece of code:
I get this error:
1>e:\development\sfmltest\sfmltest\sfmltest.cpp( : error C2653: 'sf' : is not a class or namespace name
Why is that?
Code: [Select]
#include <SFML/System.hpp>
#include <iostream>
#include "stdafx.h"
int main()
{
sf::Clock Clock;
while (Clock.GetElapsedTime() < 5.f)
{
std::cout << Clock.GetElapsedTime() << std::endl;
sf::Sleep(0.5f);
}
return 0;
}
I get this error:
1>e:\development\sfmltest\sfmltest\sfmltest.cpp( : error C2653: 'sf' : is not a class or namespace name
Why is that?