title: glfw3 error: DSO Missing from command line
body: <p>I recently had to reinstall Linux Mint on my PC. I reinstalled all my libraries, such as GLFW and came across an error I have never seen before. Unfortunately my google-fu skills do not seem up to par for this error as I've not been able to find any fixes that work for me. Sidenote: these programs compiled fine on my old installation, and they also compile perfectly fine on my laptop that also runs Linux Mint 17.2.</p>
  <p>This is the compile statement I using to compile:</p>
  <pre><code>g++ -std=c++11 main.cpp -o out -lGL -lGLU -lglfw3 -lX11 -lXxf86vm -lXrandr -lpthread -lXi
  </code></pre>
  <p>This is what the terminal spits out at me:</p>
  <pre><code>/usr/bin/ld: //usr/local/lib/libglfw3.a(glx_context.c.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
  /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libdl.so: error adding symbols: DSO missing from command line
  collect2: error: ld returned 1 exit status
  </code></pre>
  <p>EDIT:
  I have reinstalled Mint twice in order to try and fix this. It turns up everytime.</p>