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

Author Topic: Nothing is displayed?  (Read 1264 times)

0 Members and 1 Guest are viewing this topic.

fatum

  • Newbie
  • *
  • Posts: 47
    • MSN Messenger - bowsers7@hotmail.com
    • AOL Instant Messenger - therealblah569
    • View Profile
    • http://boards.psynetfm.com
Nothing is displayed?
« 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!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Nothing is displayed?
« Reply #1 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 ;)
Laurent Gomila - SFML developer