Segmentation Fault in SDL_SetVideoMode using OpenGL

Hello,

I try to create my first program using SDL and OpenGL. I have a
segmentation fault when i use the function SDL_SetVideoMode. In the
console, the program writes : “Loading required GL library
/usr/X11R6/lib/libGL.so.1.2” and make the segmentation fault.

Do you what can be the problem (Other software using openGL and SDL like
TuxRacer don’t make this error)

Thank you

Ludovic DENOYER
Phd Student on Machine learning
University of PARIS 6 - LIP6
FRANCE