Hi,
today I set up sfml and tried to use it with both eclipse (cdt) and visual studio 2010.
The clock example works fine (with both IDE's).
Then I wanted to try something with graphics.
In this forum I found this example:
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include<iostream>
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <iostream>
int main()
{
std::cout << "hallo";
sf::RenderWindow Game(sf::VideoMode(800, 600 ,32 ), "SFML BLANK WINDOW");
sf::Event Event;
while (Game.IsOpened())
{
while (Game.GetEvent(Event))
{
if (Event.Type == sf::Event::Closed)
Game.Close();
}
Game.Clear();
Game.Display();
}
return EXIT_SUCCESS;
}
}
unfortunately the render window is not being displayed, nore "hallo" is displayed.
Also I cant terminate the process from within eclipse (using the red square), but I must shoot the process up with windows task manager.
I'm using windows 7 64 bit.
The strange thing is that the problem occurs both with visual studio and eclipse so I think it's probably not up to my setup.
Here are some things I was not sure about in the setup:
-the order of the libraries in the linker settings (sfml-system-d,sfml-window-d, etc.)
-the preprocessor settings (SFML_DYNAMIC, SFML_STATIC, or just nothing).
Thanks in advance for any suggestions.
If you need further informations to help me just ask me.
Edit: im using an ati graphics card, I read somewhere that some ati drivers can cause problems with sfml, can this be the case here?