title: cannont find lGL
body: <p>Question: why can't it find -lGL?</p>
  
  <hr>
  
  <p>Info: I wrote a program as guided by <a href="http://www.opengl.org/wiki/Programming_OpenGL_in_Linux%3a_GLX_and_Xlib" rel="nofollow">this site</a> on my netbook this morning and it compiled and ran with no problem. I then proceeded to take the exact same code and try to run it on my desktop. the version my netbook compiled worked, but it yelled at me because my netbook doesn't have a graphics card and my desktop does so it wasn't quite compiled right. still ran though.</p>
  
  <p>But when I tried to compile it on my desktop it failed. at first it was saying "Fatal error: GL/gl.h: no such file or directory" so i thought "wait, i thought opengl came with ubuntu, I mean my netbook worked, maybe I installed something and forgot about it" so i ran through apt and pulled down everything opengl I felt might help. but staring at 212 - 1278  packages (depending on what words i search with) that may or may not be opengl related, I don't know what else to try. I got past the first problem, but now it is complaining that it can't find -lGL, which seems really odd.</p>
  
  <p>any tips, tricks, comments, quips? My end objective is to be able to compile c code from the command line, I've been using the command that I got from the afore mentioned site:</p>
  
  <pre><code>gcc -o gltest gltest.c -lX11 -lGL -lGLU
  </code></pre>
  
  <p>I run Ubuntu 11.04 desktop, 64-bit. Nvidia GTX465.</p>