<分区>
事情是,我正在尝试编译简单的 C++/OpenGL 代码,无论我从编译器那里得到什么:
/tmp/ccU7u7eO.o: In function `main':
main.cpp:(.text+0x55): undefined reference to `initGL()'
main.cpp:(.text+0x72): undefined reference to `loadMedia()'
main.cpp:(.text+0x8f): undefined reference to `handleKeys(unsigned char, int, int)'
main.cpp:(.text+0x99): undefined reference to `render()'
我用这些编译它: g++ main.cpp -o 测试 -lGLEW -lGLU -lGL -lglut