OpenGL library not linking [duplicate]
问题 This question already has answers here : What is an undefined reference/unresolved external symbol error and how do I fix it? (34 answers) Closed 5 years ago . I have this error on Ubuntu Eclipse that doesn't go away: Invoking: GCC C++ Linker g++ -L/usr/lib/i386-linux-gnu -o "GLUT" ./src/GLUT.o -lglut -lGLU /usr/bin/ld: ./src/GLUT.o: undefined reference to symbol 'glEnable' //usr/lib/i386-linux-gnu/mesa/libGL.so.1: error adding symbols: DSO missing from command line collect2: error: ld