Pergunta

Hi i made a command line tool but when compiling i get this error :

enter image description here

which is rather strange because the file is in the right folder in the project :

enter image description here

I already tried removing it and then adding it again , but it didn't help.

Did i forget to include something etc ... ? I'm not really familiar with xcode so any help would be greatly appreciated.

Foi útil?

Solução

You don't need the GL folder.

#include <OpenGL/OpenGL.h>

Within OpenGL.framework is gl.h, glext.h, and whatnot, and it's adapted for mac. If you insist on GL/gl.h, you need to add it to the project's header search path. To do this, go to your project's settings->build rules, and search "Include Paths". When you find the "Header Include Paths" section, type in "${SRCROOT}/". This assumes that GL/gl.h is in the same project as your folder.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top