View Full Version : can't compile

02-02-2004, 03:56 PM
http://www.opengl.org/discussion_boards/ubb/smile.gifUsing Visual C++6.0. Created project and addded OpenGL32.lib, GLu32.lib and GLaux32.lib to Object/Library Modules. Downloaded GLUT files in a folder. No GLUT files are in INCLUDE\GL, SYSTEM32 or LIBRARY directories they exist only in the download folder via C:\unzipped\folder. Source file has #include <gl\glut.h>. Will glut.h be accessed although it is not in INCLUDE\GL directory else what could be preventing compile?

02-02-2004, 04:57 PM
Unlikely - the compiler wouldn't know where to look for it.

But more helpful would be an error message...?

02-02-2004, 05:47 PM
Thanks for helping. No error message, only get statement 'filters for class selected in WizardBar' followed by 'Ready' on STATUS bar. Otherwise nothing happens. No message of errors and warnings at bottom of screen. How can I get the GLUT files (glut32.dll, glut32.lib, glut.h)in INCLUDE\GL, SYSTEM, and LIBRARY directories?

[This message has been edited by xenon (edited 02-02-2004).]

02-03-2004, 03:19 AM
I have a link on my website to the Microsoft version of GLUT website. www.angelfire.com/linux/nexusone/ (http://www.angelfire.com/linux/nexusone/)

Go there and download the glut for windows zip file and extract the files and put them in the correct directory.

02-03-2004, 06:12 AM
I copied glut.h to the INCLUDE\GT directory, glut32.dll to the SYSTEMS32 directory, and glut.lib to the LIBRARY directory. LIBRARY directory also has GLAUX. The problem still exists. Downloaded OPENGL programs have the same difficulty. When I try to compile these programs using Borland C++ compiler I get the error 'unable to open include file GL\GLUT.H' as the first error.

02-06-2004, 08:05 AM
Thanks for your help. The compile result window was covered by the application window. Had to click bottom pane of application window and drag it up.

02-08-2004, 10:30 PM
Note: You should not include GL\GLUT.H, it should be:

#include <GL/glut.h>

[This message has been edited by marcus256 (edited 02-09-2004).]

02-21-2004, 01:39 PM
Thanks for the correction.