When you include a header in your workspace, you simply add it to a list of header files located on the browser. This is used to make browsing through header files, source files, definition files, etc. a lot easier. Note that when you include them into a workspace, you do NOT include them in your source, to do this, add the following line:
//for a library in the include folder:
#include <libname> //or
#include <folder/libname> //or
#include <libname.h>
//for a local library
#include "libname.h"
//for a library in a foreign folder
#include "C:\folder\libname.h"
once you do this, you must include the glu, and glut libraries, to do this goto the build options menu and select the library files in the browse for files section, then click add.
It should compile now :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have double checked that i have Glu.h & Glut.h But it wont let me add them to my projects...why?
It give me LINKER ERRORS
Any reason why?
You must know that header files are not added to projects, they are only #included
When you include a header in your workspace, you simply add it to a list of header files located on the browser. This is used to make browsing through header files, source files, definition files, etc. a lot easier. Note that when you include them into a workspace, you do NOT include them in your source, to do this, add the following line:
//for a library in the include folder:
#include <libname> //or
#include <folder/libname> //or
#include <libname.h>
//for a local library
#include "libname.h"
//for a library in a foreign folder
#include "C:\folder\libname.h"
once you do this, you must include the glu, and glut libraries, to do this goto the build options menu and select the library files in the browse for files section, then click add.
It should compile now :)