Guest silverskin Posted October 8, 2002 Report Share Posted October 8, 2002 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. Quote Link to comment Share on other sites More sharing options...
MoonChild Posted October 8, 2002 Report Share Posted October 8, 2002 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... Quote Link to comment Share on other sites More sharing options...
Glitz Posted October 11, 2002 Report Share Posted October 11, 2002 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.