Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - bobbaluba

Pages: [1]
1
General / namespace errors
« on: October 20, 2009, 05:21:01 pm »
I'm trying to run this piece of code:
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(8) : error C2653: 'sf' : is not a class or namespace name

Why is that?

Pages: [1]