Can i run OPENGL code from dev-c++
HI,
I''ve decided to learn opengl. And i''m wanting to know if i can run it in dev-c++.?
Also, take a simple opengl prog like this,
http://www.eecs.tulane.edu/www/Terry/OpenGL/Simple_Example.html#A%20Simple%20Example
it has the header file
#include <gltk.h>
which dev-c++ doesnt have, so whats the standard thing to do if you dont have a header file, is there a site that stores these?
thanks.
gltk.h is not a standard OpenGL header.
Since Dev C++ is built on top of GCC, you should be able to run anything you did in GCC.
That header has come from a custom package, so if you can find out where it came from, you might find a Dev C++ version of the library.
Check out http://nehe.gamedev.net/ for some great OpenGL tutorials. They all work in Dev C++.
EDIT: It looks like you are using Mesa OpenGL. Dev C++ comes with the standard OpenGL library. Try replacing gltk.h with gl/gl.h and gl/glu.h. You just have to use the OpenGL template and it will automatically include the GL libraries.
First make it work,
then make it fast.
--Brian Kernighan
"I’m happy to share what I can, because I’m in it for the love of programming. The Ferraris are just gravy, honest!" --John Carmack: Forward to Graphics Programming Black Book
[edited by - CaptainJester on July 7, 2003 8:45:58 AM]
Since Dev C++ is built on top of GCC, you should be able to run anything you did in GCC.
That header has come from a custom package, so if you can find out where it came from, you might find a Dev C++ version of the library.
Check out http://nehe.gamedev.net/ for some great OpenGL tutorials. They all work in Dev C++.
EDIT: It looks like you are using Mesa OpenGL. Dev C++ comes with the standard OpenGL library. Try replacing gltk.h with gl/gl.h and gl/glu.h. You just have to use the OpenGL template and it will automatically include the GL libraries.
First make it work,
then make it fast.
--Brian Kernighan
"I’m happy to share what I can, because I’m in it for the love of programming. The Ferraris are just gravy, honest!" --John Carmack: Forward to Graphics Programming Black Book
[edited by - CaptainJester on July 7, 2003 8:45:58 AM]
ok,
I''m on the first windows tutorial on the http://nehe.gamedev.net site.
seem to be missing the #include <gl\glaux.h> header now,
any ideas ?
I''m on the first windows tutorial on the http://nehe.gamedev.net site.
seem to be missing the #include <gl\glaux.h> header now,
any ideas ?
Unfortunatly, the first few tutorials were made when glaux was in use. You will have to do a search to find the glaux libraries.
First make it work,
then make it fast.
--Brian Kernighan
"I’m happy to share what I can, because I’m in it for the love of programming. The Ferraris are just gravy, honest!" --John Carmack: Forward to Graphics Programming Black Book
First make it work,
then make it fast.
--Brian Kernighan
"I’m happy to share what I can, because I’m in it for the love of programming. The Ferraris are just gravy, honest!" --John Carmack: Forward to Graphics Programming Black Book
well i found one on google whether its up to date or not i dont know, but i get loads of errors when i run the furst tutorial such as,
[Linker error] undefined reference to `glViewport@16''
[Linker error] undefined reference to `glMatrixMode@4''
[Linker error] undefined reference to `glViewport@16''
[Linker error] undefined reference to `glMatrixMode@4''
Hmm, perhaps you aren''t linking the OpenGL libraries.
How appropriate. You fight like a cow.
How appropriate. You fight like a cow.
quote:Original post by CaptainJester
Since Dev C++ is built on top of GCC, you should be able to run anything you did in GCC.
<SPAN CLASS=editedby>[edited by - CaptainJester on July 7, 2003 8:45:58 AM]</SPAN>
Technically that not accurate. DevC++ by, default, uses MingW as its compiler. Although MingW is the windows port of GCC.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement