Click here to Skip to main content
12,998,483 members (128,103 online)
Rate this:
Please Sign up or sign in to vote.
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.
Posted 7-Jul-11 5:48am
Updated 7-Jul-11 6:48am
Marcus Kramer 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.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

You'll need the opengl SDK to start with.[^]
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 :)
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Did you consider using google to find the info you need? OpenGL is a broad topic.
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
Rate this: bad
Please Sign up or sign in to vote.

Solution 4

( 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 :

// 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



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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170622.1 | Last Updated 7 Jul 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100