SFML community forums
Help => Window => Topic started by: strikeblack91 on March 08, 2020, 01:21:39 pm
-
Hello
I am a Epitech student and i have to create severals programs using sfml.
the problem is that when is start my program, some warnings appears and my program segfault randomly:
Warning: The created OpenGL context does not fully meet the settings that were requested
Requested: version = 2.0 ; depth bits = 0 ; stencil bits = 0 ; AA level = 0 ; core = false ; debug = false ; sRGB = true
Created: version = 4.6 ; depth bits = 0 ; stencil bits = 0 ; AA level = 0 ; core = false ; debug = false ; sRGB = true
But if i try my program on my friends computer, it works perfectly.
After have searched a lot on the internet, i ask your help...
help....
-
I always recommend to students to talk to their professor/assistant. They are being paid to help you, plus they know the parameters of the task a lot better.
What version of SFML are you using?
And what's your code?
-
Hello
Thanks you for your answer. I am in a private school, which is new in Berlin and .. there is few assistants and they don't konw all the problems of all the libraries that we use ...
I actually don'tknow the command ot get the exact version of the sfml, but I just resinstalled the SFML yesterday, and updated it.
For exemple as code, i use the main test which should display a circle with she sames command lines : https://www.sfml-dev.org/tutorials/2.5/start-linux.php
And i get this compilation error :
/usr/bin/ld: main.o: in function `main':
main.cpp:(.text+0xfc): undefined reference to `sf::CircleShape::CircleShape(float, unsigned int)'
collect2: error: ld returned 1 exit status
This is one of my first problem ...
-
Looks like you're not linking SFML or not in the correct order.