/usr/lib/libglut.so -lf2c /usr/lib/gcc/i586-suse-linux/4.3/../../../libf2c.so: undefined reference to `MAIN__' Ooops!! Sorry, it seems that you must have -lg2c instead of -lf2c ; so you have to link with libg2c and not with libf2c. Regards, Tommi