Hi,
I compiled the tutorial code (
http://www.sfml-dev.org/tutorials/2.1/start-linux.php) on my virtual Ubuntu 12.04 32-bit machine.
However, the first line
sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
causes a Segmentation Fault and the process terminates.
I am using the 32-bit version for Linux of SFML 2.1.
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
sf::CircleShape shape(100.f);
shape.setFillColor(sf::Color::Green);
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
window.clear();
window.draw(shape);
window.display();
}
return 0;
}