Problems with programming!

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…

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

Hey thanks dude… You were of great help… I successfully executed my first graphics program, thanks to you… :slight_smile:

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.