Click here to Skip to main content
Rate this: bad
good
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.
[/edit]
Posted 7-Jul-11 6:48am
adam4l334
Edited 7-Jul-11 7:48am
v2
Comments
Marcus Kramer at 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
good
Please Sign up or sign in to vote.

Solution 2

You'll need the opengl SDK to start with.
 
http://www.opengl.org/sdk/[^]
  Permalink  
Comments
adam4l at 7-Jul-11 12:46pm
   
Thanks to you
I'm going to get working on my opengl
so thank you by heart
Espen Harlinn at 7-Jul-11 12:53pm
   
5 for a nice answer :)
Rate this: bad
good
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.
  Permalink  
Comments
adam4l at 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
good
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
 
opengl32.lib
glu32.lib
 
Max.
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 365
1 Sergey Alexandrovich Kryukov 334
2 CPallini 275
3 DamithSL 230
4 Maciej Los 215
0 OriginalGriff 5,455
1 DamithSL 4,457
2 Maciej Los 3,885
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,115


Advertise | Privacy | Mobile
Web04 | 2.8.141216.1 | Last Updated 7 Jul 2011
Copyright © CodeProject, 1999-2014
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