Click here to Skip to main content
15,885,032 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm learning the basics of opengl, and each time I want to train and enter some code, the compiler seems unfamiliar with gl/gl.h & gl/glu.h library.

Where can I download what it needs for the compiler to execute me code nice and smooth?

and another silly question -but I really must know it's answer- which is:
should I use console application?

[edit OP's answer moved to here]
I'm just wondering...
why people here sounds mean to me, despite of just wanting to learn few things..thinking that this site is going to help me to improve my skills, but I see it's totally the opposite -that made me disappointed-...

You just like the wizards...don't want to teach ordinary people or end-users how things really work.You just show them how criple & weak they are, so they can't do as you.

If this comment is deleted, then that proves That I'm right about you guys, and shows how you really hide the TRUE information from people.

Thanks for listening.
[/edit]
Posted
Updated 7-Jul-11 6:48am
v2
Comments
fjdiewornncalwe 7-Jul-11 12:50pm    
Please don't post comments or question additions as answers. And if you really want an answer, don't make a comment and then mark it as a correct answer on your own question. That is a little silly if you want people to continue reading and adding potential solutions. As well it is good practice to mark the solution you select as being the answer so the question is properly tagged as answered. Cheers.

You'll need the opengl SDK to start with.

http://www.opengl.org/sdk/[^]
 
Share this answer
 
Comments
adam4l 7-Jul-11 12:46pm    
Thanks to you
I'm going to get working on my opengl
so thank you by heart
Espen Harlinn 7-Jul-11 12:53pm    
5 for a nice answer :)
Did you consider using google to find the info you need? OpenGL is a broad topic.
 
Share this answer
 
Comments
adam4l 7-Jul-11 12:07pm    
I found something, but it turned out to be just as a visual C++ with the same missing libraries
( I assume you are on windows and using a modern visual studio)

- OpenGL libraries should be included in the Visual Studio distribution.
- The gl.h and glu.h includes should be there.
- you should use a SDI or MDI (or multiple top level) application type; NOT a console application.

I just created a dummy application ( multiple top level windows ) with VS2008 and inluded the header files :

VB
// OpenGL headers
#include "gl\gl.h"
#include "gl\glu.h"


And all looks dandy...
If the include are not there, search for the files on your hard-drive and check again the installation of Visual Studio.

also, don't forget to link with

VB
opengl32.lib
glu32.lib


Max.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900