Jump to content
  • Advertisement
Sign in to follow this  

OpenGL using sdl & opengl in kdevelop on linux

This topic is 4375 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

hello all. i'm currently using KDevelop in linux. i'm trying to compile a program which uses sdl and opengl but i get some errors and i have no idea why (mybe i forgot to link somthing?) here are the errors:
ad.o: In function `LoadGLTextures()':/home/yhonatan/ad/src/ad.cpp:161: undefined reference to `gluBuild2DMipmaps'
ad.o: In function `resizeWindow(int, int)':/home/yhonatan/ad/src/ad.cpp:191: undefined reference to `gluPerspective'

and here are my includes:
#include <stdio.h>
#include <stdlib.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include "SDL.h"

and this is what i give to the linker:
-lSDL -L/usr/lib -lGL -L/usr/include/GL

what am i doing wrong? or what should i add? thanks in advance.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!