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 - grejak

Pages: [1]
Window / Error executing very simple SFML Code
« on: December 28, 2015, 09:01:20 pm »
Hey :)

I recently bought a Raspberry Pi 2B and downloaded and succesfully compiled SFML  on it.
I can compile this little program using:

g++ sfml.cpp -o sfml -lsfml-system -lsfml-window -lsfml-graphics

#include <iostream>
#include "SFML/Graphics.hpp"

int main()
  sf::Window window(sf::VideoMode(800,600),"Title");
  return 0;

But when I try to execute it I get the following Error Message:

Failed to get visual info
Failed to create window
X Error of failed request: BadWindow (invalid Window.parameter)
 Major opcode of failed request : 3 (X_GetWindowAttributes)

Pages: [1]