PDA

View Full Version : Problems with programming!!!



Poorvankara
02-16-2009, 07:22 PM
Hi, I am a novice and I want to write Graphics application programs in Linux using OpenGL.

I am facing some problems..

1. Don't know what packages are to be installed ? (I intuitively installed gtk+)
2. I am unable to get man pages on glut and other files..
3. I have tried writing a program in c++ and have included GL/glut.h, GL/glu.h, GL/gl.h. However, if I try to use the GLUT function calls, the compiler flags errors...
For Ex: undefinied reference to function call 'glutInit'

Please do help me in getting the things right...

ZbuffeR
02-17-2009, 02:20 AM
Modern distributions only install binary packages by default, so be sure to also install the -dev packages for glut or freeglut (ie. freeglut-dev).

EDIT : you message is a linker problem, you have to add flags : -lGL -lglut

Poorvankara
02-18-2009, 11:25 AM
Hey thanks dude.. You were of great help.. I successfully executed my first graphics program, thanks to you... :)