Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
/usr/lib/libglut.a (glut event.o) glah blah
:undefined reference to function `Xflush'
As far as I can see I have all the libraries I need, I find Xflush is a basic Xlib function, but should -lX11 see to that?
/* Called when window needs to be redrawn */
glClear(GL_COLOR_BUFFER_BIT); /* clear screen to black */
/* just draw a boring red triangle */
glColor3f(1.f, 0.f, 0.f);
glVertex2f( .5f, -.5f);
glVertex2f( 0.f, .5f);
/* Parse arguments, and set up interface between OpenGL and window system */
main(int argc, char *argv)