old glut examples compiling and linking problems

hi there

ive got a problem, when I compile Opengl apps using gl.h, glaux.h and gl.h theres nothing wrong and the app just run, but if I try to compile and run any glut based app Ive got the message that compiler has reached the end of file without finding the respective header , if i try to run exe files (always made with glut) i receive the message that there is a problem with the setpixelformat method inside the glut.dll

can someone give some advice??? im using MS Visual C++ 6
the libraries are glut32.dll and the rest of the ms opengl opengl32.lib, glu32.lib and glaux32.lib

thanks in advance