title: Setting up GLFW with MinGW
body: <p>I'm trying to learn OpenGL with GLFW, but I'm having some problems.</p>
  
  <p>This is my main.cpp:</p>
  
  <pre><code>#include &lt;GL/glfw.h&gt;
  
  int main()
  {
      glfwInit();
      glfwSleep( 1.0 );
      glfwTerminate();
  }
  </code></pre>
  
  <p>This is my project's folder structure:</p>
  
  <pre><code>Project
  +- glfw.dll
  +- main.cpp
  </code></pre>
  
  <p>This is where I extracted the GLFW files:</p>
  
  <pre><code>MinGW
  +- include
  |   +- GL
  |      +- glfw.h
  +- lib
     +- libglfw.a
     +- libglfwdll.a
  </code></pre>
  
  <p>And this is how I try to build the program:</p>
  
  <pre><code>g++ main.cpp -o main.exe -lglfwdll
  </code></pre>
  
  <p>And these are the errors I'm getting:</p>
  
  <pre><code>C:\Users\Dark\AppData\Local\Temp\cc0ZgTVp.o:main.cpp:(.text+0xf): undefined reference to `_glfwInit'
  C:\Users\Dark\AppData\Local\Temp\cc0ZgTVp.o:main.cpp:(.text+0x25): undefined reference to `_glfwSleep'
  C:\Users\Dark\AppData\Local\Temp\cc0ZgTVp.o:main.cpp:(.text+0x2a): undefined reference to `_glfwTerminate'
  collect2.exe: error: ld returned 1 exit status
  </code></pre>
  
  <p>Am I missing something?</p>