Installation of all OpenGL libraries for development in Ubuntu 11.10

心已入冬 提交于 2019-12-04 02:36:11

Remove the spaces inside the < > and it will compile. So instead of writing < GL/glew.h > write <GL/glew.h>

try compiling this way:

g++ -I/usr/include -L/usr/lib -lglut -lGL -lGLU -lGLEW example.cpp -o example

It's more likely that g++ by default looks for GL/glew.h in /usr/local/include and can't find it.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!