Jump to content

openGL with GCC


Guest silverskin
 Share

Recommended Posts

Guest silverskin

I've just started learning C and C++ in my course at uni. I can write simple programs using a text editor and compile them with the GCC in a terminal.

 

I am also learning openGL. I write a simple program and try to compile it in the same way and I get an error. Is it possible to use openGL in linux? Do I need to download something to make it work.

 

Thanks.

Link to comment
Share on other sites

Sorry to say this but it seems MDK screwed up development libraries. Even though most of them are present (and you are able to find them or install them from CD). My guess is it has something to do with where GCC is looking for libraries. In my QT programs, I specify the libraries explicitly, ie:

include "/usr/lib/qt3/include/qapplication.h
. You can try that if you want...
Link to comment
Share on other sites

These are the compiler options I used for openGL programs under LM8.1 (I too am experimenting with openGL):

 

-D_GNU_SOURCE -Wall -g -c

 

These are the linker options I used:

 

-L. -L/usr/X11R6/lib -lglut -lGL -lGLU

 

Glitz.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...