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

Pages: [1]
1
General / [SOLVED]SFML Segmentation fault
« on: April 23, 2017, 07:59:44 pm »
Hello,

I am having a problem with the library. When creating a simple program:
int main() {
   sf::Texture texture;
}
 


I get [1] 6699 Segmentation fault (core dumped) <program path>

When running it in gdb I get
in ?? () from /usr/lib/libsfml-window.so.2.4
in ?? () from /usr/lib/libsfml-window.so.2.4
in ?? () from /usr/lib/libsfml-window.so.2.4
in sf::Texture::Texture() () from /usr/lib/libsfml-graphics.so.2.4

Some other information:
OS: Archlinux
SFML version: 2.4 (tried sfml-git and sfml packages)

This is how I compiled my program:

g++ main.cpp -o main -lsfml-graphics -lsfml-system

Thank you very much in advance

Pages: [1]
anything