Hi guys,
I compiled SFML and was tested a little programm:
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <iostream>
int main()
{
sf::RenderWindow Window(sf::VideoMode(800, 600, 32), "SFML Sample Application");
while (Window.IsOpened())
{
sf::Event Event;
while (Window.PollEvent(Event))
{
switch (Event.Type)
{
case sf::Event::Closed: Window.Close(); break;
default: break;
}
}
Window.Clear(sf::Color(0, 255, 255));
Window.Display();
}
return 0;
}
but it sayed:
error: 'class sf::RenderWindow' has no member named 'IsOpened'
error: 'class sf::RenderWindow' has no member named 'PollEvent'
error: 'class sf::Event' has no member named 'Type'
error: 'class sf::RenderWindow' has no member named 'Close'
error: 'class sf::RenderWindow' has no member named 'Clear'
error: 'class sf::RenderWindow' has no member named 'Display'
and i dont know why??
I linked the libs and include from SFML but it dont compile
Sincerly Toren