PDA

View Full Version : can't compile



xenon
02-02-2004, 04: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, 05:57 PM
Unlikely - the compiler wouldn't know where to look for it.

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

xenon
02-02-2004, 06: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?
-x

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

nexusone
02-03-2004, 04: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.

xenon
02-03-2004, 07: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.

xenon
02-06-2004, 09: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.
-x

marcus256
02-08-2004, 11: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).]

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

-x