Jump to content

  • Log In with Google      Sign In   
  • Create Account


problem makin opengl projects in Dev C++


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
6 replies to this topic

#1 Merc22   Members   -  Reputation: 122

Like
Likes
Like

Posted 30 July 2001 - 07:53 AM

i have just started reading tutorials about opengl and i was hoping to use Dev C++ which has a opengl template the problem is i cant find the opengl libraries to make a basic window can anyone help me? thx

Sponsor:

#2 Obelix   Members   -  Reputation: 122

Like
Likes
Like

Posted 30 July 2001 - 09:14 PM

The basic OpenGL libraries do not have any functions for creating a window. You can use Windows functions for this look at the NeHe tutorials. A easier alternative is to use GLUT. You can get GLUT for your compiler here
http://sites.netscape.net/ptrpck/glut.htm

#3 Merc22   Members   -  Reputation: 122

Like
Likes
Like

Posted 31 July 2001 - 01:36 AM

im learning opengl from nehe
i dont think i described the problem correctly

nehe says to find 3 specific .lib but i cant find them

#4 mikeyrb   Members   -  Reputation: 122

Like
Likes
Like

Posted 31 July 2001 - 06:28 PM

Dev-C++ uses a compiler called Mingw32 (http://www.ming.org). As such, the Mingw32 compiler does not use the MS library files. It has its own type with a *.a extension. The libs NeHe is referring to, I think, would be "libopengl32.a", "libglu32.a", and "libglaux.a". The GLAUX lib included with Dev-C++ is not the complete version; it requires a dll. I can email you the full version of it if you like, or you can search on the web. Keep this in mind so that you don''t download any SDK''s from MSDN, only to find out they don''t work, since Mingw32 uses *.a, and not *.lib. I have succesfully compiled programs before in Dev-C++ with .lib files, but they crash at run time.

BTW, some people enjoy Dev-C++ better than MSVC++...

#5 _Buster_   Members   -  Reputation: 122

Like
Likes
Like

Posted 31 July 2001 - 06:48 PM

Hey, I use NeHe and I use Dev CPP4. Here is how to access the .lib files.
1) you have to have created a project not just a source
2) click on ''Project'' then on ''Project Options''
3) This will bring up a new window. Click on ''Load Object Files''
4) on the Load window, click change the file type to a./.lib then find the directory where you installed Dev CPP (if you aren''t already there)
5) You should find a folder called "Lib" open that
6)Now it will bring up a list of files. they ALL have lib in front of them so just ignore the lib, and look for the files you need. (glaux, OpenGL32, and glu32, and there may be others depending on which tutorial you are on.)

Ok I know it looks complicated, but you''ll get used to it. I just wanted tit to be clear. you should be able to find it easy, but if not you can contact me here.


_BUSTER_


www.crosswinds.net/~dotspot
______________________________
Check out my for sale domain name!

http://www.theatermonkey.com



#6 Beer Hunter   Members   -  Reputation: 712

Like
Likes
Like

Posted 31 July 2001 - 09:02 PM

It would have been nice if Dev-c++ supported the #pragma comment(lib, "library.lib") thing in some form. But using the project options to link libraries in isn''t a complete disaster.

#7 Merc22   Members   -  Reputation: 122

Like
Likes
Like

Posted 01 August 2001 - 03:16 AM

wow thx alot guys
i saw the .a files but i wasnt sure wat to do with them so i included them before

thx for clearing things up

mikeyrb, can u send me the complete dll?
my email is bss400@aol.com

thx




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS