SFML segmentation fault when calling sf::RenderWindow::Clear()

Title says it all. I'm encapsulating SFML in a class and making some widgets for a basic GUI library that can be used in games.

However, when I call sf::RenderWindow::Clear() I get a segfault.

main.cpp: http://paste.ubuntu.com/583939/
sfui.hpp: http://paste.ubuntu.com/583941/
sfui.cpp: http://paste.ubuntu.com/583940/

Note: I used ubuntu's pastebin (I didn't know it had one) because codepad.org and pastebin.com don't seem to work from here.
Note: I didn't include <Widget.hpp> because the widget stuff is not finished and is not used.

Thanks,
Chrisname.
Last edited on
SFML sometimes randomly segfaults if you aren't linking to its -d libs. No idea why. Other than that, it compiled fine for me..
That's weird. I don't seem to have those libraries on my system :(
It (segfault) happens when I try to draw on the screen as well.
I re-compiled and re-installed the libraries and it works. I guess there must have been a problem with the libraries I compiled, maybe a dependency problem.
Topic archived. No new replies allowed.