include GLUT in miltiple source files

this may sound pretty silly but i’ve spent last 2 hours trying to deal with. so I’m writing a openGL app using GLUT and borlands free C++ compiler. my entire program was in a single CPP file but now it is becomming more and more complex and i want to put all classes in separate files. the problem is that when i include GLUT.H in more then one file in my project, the compiler generates a large list of errors saying that some stuff is already been defined. can anyone tell what is going on and how can i get rif of it…? thanks

Ummm, I have NO idea why your GLUT headers arent protected, they SHOULD be. Anyway, open up the GLUT header and put in if it isnt ther already

#ifndef GLUT_H
#define GLUT_H

// rest of glut header