我正在Ubuntu 10.04(我有一个32位系统)上构建一个非常简单的OpenGL应用程序.
g++ -L/usr/lib simple.cpp -lglut /usr/bin/ld: /tmp/ccoPczAo.o: undefined reference to symbol 'glEnd' /usr/bin/ld: note: 'glEnd' is defined in DSO //usr/lib/libGL.so.1 so try adding it to the linker command line //usr/lib/libGL.so.1: could not read symbols: Invalid operation collect2: ld returned 1 exit status
有人知道我在做错什么吗?