Iv'e started using glut, well actually thats a lie because i can't get it working iv'e just started woking with openGL in the last few days and i'm still much a novice, it's a bit of a steep learning curve.
Anyways iv'e downloaded the GLUT pack but I dont know how too add it to a project or if I have installed it correctly because when i add it too a file it dosn't do much except come up with errors and it's not the code im using that has errors
I am aware that when using opengl you have to add the -lopengl32 to the project options, is there one for the glut pack ass well?
Compiler, OS? Assuming it's linux and GCC, you need to link against the glut libraries also
And include the glut headers, gl/glut.h or glut.h depending on where you've installed it. Be more specific, what errors?
Don't forget you'll also need the glut runtime libraries!
Also, what part of Victoria are you from? :)
Win Xp, Dev C++, Frankston
And I put the glut.lib file into the libary folder the dll to put in windows\system and the glut.h in include\gl
Okay, once you've installed glut (the libraries, headers)
Then you'll need to link against glut.lib (may be called glut32.lib), and include glut.h (or gl/glut.h).
If you get errors, post them here - guessing is hard and not worth it.
Bah, Frankston. Almost bed time too!
The Errors I'm getting are:
g++: c:/documents and settings/matty alan/desktop/glut test/untitled1.o: No such file or directory
g++: file path prefix `C:\DEV-C_~1\Bin\' never used
1 c:/documents and settings/matty alan/desktop/glut test/untitled1.cpp
C:\DEV-C_~1\Include\gl\gl.h:1135: syntax error before `void'
syntax error before `void'
syntax error before `APIENTRY'
syntax error before `void' <--- theres about 20 of these all on different lines
Where abouts are you in Vic
what do you mean about 'link against'
Post your code here, or do a pastebin (google pastebin if you don't know what it means)...
Link against just means to link with.
I'm in Brighton.
Try putting it in a directory whose names don't contain spaces.