title: Problems linking to a library with gcc
body: <p>I installed <a href="http://www.sfml-dev.org/" rel="nofollow noreferrer">SFML</a> from scratch today so I could work on a game. I downloaded the source, ran <code>sudo make install</code>, tried compiling one of my old projects, and I couldn't get it to link properly. So I tried running a simpler project: one of the samples in the tutorials. I tried to compile <a href="http://www.sfml-dev.org/tutorials/1.6/window-opengl.php" rel="nofollow noreferrer">this one</a> specifically, but I get these errors:</p>
  
  <pre><code>g++ -o atest test.cpp -lsfml-graphics -lsfml-window -lsfml-system /tmp/ccaa86fR.o: In function `main':
  test.cpp:(.text+0x1d2): undefined reference to `gluPerspective'
  collect2: ld returned 1 exit status
  make: *** [test] Error 1
  </code></pre>
  
  <p>Trying an <a href="http://www.sfml-dev.org/tutorials/1.6/start-linux.php" rel="nofollow noreferrer">even simpler project</a>, the one in the initial tutorial, I don't run into problems compiling. However, when I try to run it, I get this error:</p>
  
  <pre><code>./atest: error while loading shared libraries: libsfml-graphics.so.1.6: cannot open shared object file: No such file or directory
  </code></pre>
  
  <p>I checked, and the files did install to /usr/local/lib/ which is where they're supposed to go as far as I know. What am I doing wrong here?</p>