#include <GL/glut.h>
I have the GL headers in H:/Program/src/include/GL
Assuming you have already created a project:
- right-click on the project in the Management panel, select "Build options"
- on the "Directories" tab, select the "Compiler" tab
- Click on "add" and add the path "H:/Program/src/include"
Notice the missing "GL" because you include "GL/glut.h" in your source file. Including headers is for the compiler, including the OpenGL library works similar. But you have to select the "Linker" tab and add the path to the libraries (I assume this is "H:/Program/src/lib" with your configuration). Of course you'll need to add the glut (or whatever OpenGL lib you're using) to the libraries: "Build Options" -> tab "Linker", click "Add", provide e.g. "glut32".
With regards, Morten.