SFML community forums

Help => Graphics => Topic started by: fatum on August 20, 2011, 11:23:26 pm

Title: Nothing is displayed?
Post by: fatum on August 20, 2011, 11:23:26 pm
I have this bit here:

Code: [Select]

#include "SFML/Graphics.hpp"

int main(int argc, char** argv)
{
sf::RenderWindow App(sf::VideoMode(550, 400, 32), "Testing!");

while (App.IsOpened() == true)
{
sf::Event event;
while (App.GetEvent(event))
{
switch (event.Type)
{
case sf::Event::Closed:
App.Close();
break;
}
}

App.Clear();

App.Display();
}

return EXIT_SUCCESS;
}


I'm compiling with:
Code: [Select]

g++ -o program main.cpp -lsfml-graphics -lsfml-window


Whenever I attempt to open "program" from the CLI, nothing is opened!  I read that 1.6 doesn't work with ATI graphics cards, however I'm able to view all of the precompiled examples in the "samples" directory.  I have an nVidia GPU on my desktop, I'll give that a shot too.

Thanks for any help!
Title: Nothing is displayed?
Post by: Laurent on August 21, 2011, 10:44:40 am
Quote
I read that 1.6 doesn't work with ATI graphics cards, however I'm able to view all of the precompiled examples in the "samples" directory

Only dynamic SFML libraries suffer from this problem -- and samples are linked statically to SFML ;)