Setting everything up

Hi,
When i try to compile my windows openGL programs in linux, i get messages about the openGL headers not being linked, how do i link in the required files using cc or gcc.

Thanks, Paul

You don’t link headers, so I’m going to assume you meant “it won’t link in the OpenGL libraries” instead.

To link in libraries, pass in -l<name of lib> on the gcc command-line:

gcc -o myprogram myprogram.c -lGL -lGLU -lglut

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