problem makin opengl projects in Dev C++
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
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
http://sites.netscape.net/ptrpck/glut.htm
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
i dont think i described the problem correctly
nehe says to find 3 specific .lib but i cant find them
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++...
BTW, some people enjoy Dev-C++ better than MSVC++...
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
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
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement