PDA

View Full Version : i have a problem



darkarden
01-03-2007, 10:02 AM
I have had some trouble figuring out the open gl and how to install it properly. I have followed all the instructions i have been given as closely as i could however when i try and 'build' a program i get this message:

1>------ Build started: Project: test, Configuration: Debug Win32 ------
1>Compiling...
1>jhfd.cpp
1>c:\documents and settings\craig\my documents\visual studio 2005\projects\test\test\jhfd.cpp(1) : fatal error C1083: Cannot open include file: 'GL/glut.h': No such file or directory
1>Build log was saved at "file://c:\Documents and Settings\Craig\My Documents\Visual Studio 2005\Projects\test\test\Debug\BuildLog.htm"
1>test - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

jhfd is the file name (it was a test so i just named it something random)

this is what i have at the top of the code:

#include <GL/glut.h>
#include <cmath>
#include "SpaceShip.h"

there is ofcouse code after that but it is pretty long so im not going to post it unless i am asked to, it is supposed to make a space ship in 3D but it just give me that error.
thanks for your help

darkarden

Zengar
01-03-2007, 11:36 AM
You have to install the glut library