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.


Messages - atp

Pages: [1]
1
General / Re: Segmentation fault while trying tutorial
« on: October 28, 2013, 12:24:44 am »
The code you have posted works fine. So, why does window.clear() not work?

2
General / Re: Segmentation fault while trying tutorial
« on: October 27, 2013, 04:20:22 pm »
Why do you think it's because of these two lines? Can you show a minimal complete code that still reproduces the problem (remove everything that doesn't trigger the segmentation fault).

When I remove window.clear(), the window is shown and no error message appears. So, it is caused by that line.

How did you setup and link everything? A lot of such errors are related to wrong configurations.

By using the same lines as in the tutorial:
g++ -c test.cpp
g++ test.o -o sfml-app -L/home/andreas/games_ws/SFML/lib -lsfml-graphics -lsfml-window -lsfml-system

3
General / Segmentation fault while trying tutorial
« on: October 27, 2013, 05:17:13 am »
The tutorial at http://www.sfml-dev.org/tutorials/2.1/start-linux.php gives a segmentation fault, and I think it is caused by these two lines:

window.clear();
window.draw(shape);
 

Is this somehow related to the graphics driver (I'm using bumblebee for nvidia optimus support)?

Pages: [1]
anything