You have to include the library in your gcc statement...
g++ -lglut -o test myfile.cpp Keith Bertelsen wrote:
The error message I recieve is: $ gcc test.cpp -o test /tmp/cc8DHSWG.o(.text+0x1e): In function `main': : undefined reference to `glutInit' /tmp/cc8DHSWG.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0' collect2: ld returned 1 exit status This, of course, baffles me, for when I go into /usr/include/GL and grep for glutInit in freeglut_std.h, it seems to exist (a series of includes brings freeglut_std.h in from glut.h).
----------------------------------------------------------------- To get off this list, send email to [EMAIL PROTECTED] with Subject: unsubscribe -----------------------------------------------------------------
