g++ main.cpp -o first -L/usr/X11/lib `sdl-config --cflags --libs` -lGL -lGLU
This is based on what everyone here has told me, and... it still didn''t work. <:{
I get this big loooooooooong error message that repeatedly says "undefined reference" which tells me that the linker is not doing it''s job, or there''s an API problem that I''ll never understand.
I have SDL and the development libraries installed, and I still can''t understand what is going on. Please help.
I am running Mandrake Linux 8.1 with SDL v1.2.3 and Mesa.