so how to do that?? (srry but I'm a newbie here)
so how to do that?? (srry but I'm a newbie here)
add -lgl as an option
I am infallible, you should know that by now.
"My favorite language is call STAR. It's extremely concise. It has exactly one verb '*', which does exactly what I want at the moment." --Larry Wall
(02:15:31 PM) ***TimToady and snake oil go way back...
42 lines of Perl - SHI - Home Site
add it where?? and how??
Last edited by madfrenzy; March 2nd, 2008 at 10:27 PM.
what are the header files required for this program?? in ubuntu ofcorse
This may possibly help. Especially Wybiral's post (it is the second one):
http://ubuntuforums.org/showthread.p...wybiral+opengl
Somehow madfrenzy has to tell Netbeans to add the options -lGLU -lGL (or something similar) to the g++ command that links the program. I've never used Netbeans, but it appears from the output shown above that it creates a Makefile and uses make to compile and link the code. Can someone help madfrenzy figure out how to tell Netbeans to use the OpenGL libraries?
The correct way to add them is:
(notice the uppercase on GL)#include <GL/glut.h>
#include <GL/gl.h>
You can check if you have the files if there is a folder:
If it isn't,get them with the freeglut3-dev package, and it should install everything. I just installed this and I can include glut.h and gl.h on Cls -l /usr/include/GL
*Yeah, I was right, I uninstalled the freeglut3-dev and glut.h disappeared. So that's the correct package.sudo apt-get install freeglut3-dev
Last edited by Can+~; March 5th, 2008 at 04:22 AM.
"Just in terms of allocation of time resources, religion is not very efficient. There's a lot more I could be doing on a Sunday morning."
-Bill Gates
Bookmarks