Compilation problems

I’m trying to get started, but when I try to compile a really simple program, I get the error:

undefined reference to ‘glWhatever’

How can I fix this?

Link with the proper libraries:

gcc … -L/usr/X11R6/lib -lGL -lGLU -lglut

is a typical link.

Okay, that worked. Thanks.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.