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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...