Jump to content
  • Advertisement
Sign in to follow this  
mythcat

I try to compile program with glut under linux

This topic is 3279 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I try to compile program with glut under linux. I use code::blocks but not working The error is : /home/net/terr/tg.cpp|162|undefined reference to `glutBitmapCharacter'| The program have : #include <math.h> #include <GL/glut.h> #include <GL/gl.h> #include <GL/glu.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include "tga.h" #include "terrain.h" The glut.h is on /usr/include/GL/glut.h The script package not find the glut libs ?! What is corect way to make this !?

Share this post


Link to post
Share on other sites
Advertisement
I guess you must add the proper libraries. That is, GL (or "-lGL" in command line syntax) and I think it was GLUT.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!