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

Pages: 1 2 [3]
31
General / Segmentation error with example code and Ubuntu
« on: March 31, 2015, 12:29:33 pm »
When I tried to compile the example code (from here: http://www.sfml-dev.org/tutorials/2.2/start-linux.php),  the desired green circle appears for a short amount of time (less than a second usually), then the window closes and the terminal says Segmentation error (core dumping). On my previous OS (Windows 7) the example works perfectly, and doesn't close unexpectedly.

After running the Code::Blocks debugger, I picked out a piece of text that seems to be appropriate:
Program received signal SIGSEGV, Segmentation fault. In sf::RenderTarget::draw(sf::Drawable const&, sf::RenderStates const&) () (/home/ben/Documents/C++ Programming/Resources/SFML-2.2/lib/libsfml-graphics.so.2.2.0)

Specs and Versions:
Ubuntu Version: 14.04 (64 bit)
SFML Version: 2.2
IDE: Code::Blocks

Pages: 1 2 [3]