On 64-bit Ubuntu 14.04 LTS, I am trying to compile a simple OpenGL program that uses glut. I am getting a Segmentation Fault (SIGSEV) before any line of code is executed in
It's possible that your program and libGL are linked with, or using, two conflicting versions of a third library (maybe libc?). It's difficult to diagnose with the details you've provided. You could disable optimisations (-O0
) and see if GDB gives up any further clues. You could see what dependencies both your program and libGL have by running ldd
- this shows compile-time dependencies. Sorry I can only give suggestions - these types of runtime problems can occur for multiple reasons.