title: GLFW Won't Link Correctly
body: <p>So recently I've started a project involving GLFW (64-bit, with GLEW). However, I can't seem to get it to link correctly. Here's how I'm set up:</p>
  
  <p>OS: Windows 8 64-bit</p>
  
  <p>Compiler: mingw64</p>
  
  <p>IDE: eclipse</p>
  
  <p>My simple test program:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  #define GLEW_STATIC
  #include &lt;gl/glew.h&gt;
  #include &lt;gl/glfw3.h&gt;
  
  int main(void) {
      glfwInit();
  puts("Hello, World!");
      return (EXIT_SUCCESS);
  }
  </code></pre>
  
  <p>How I've set up the linking: <a href="http://i.imgur.com/yyISNtZ.png" rel="nofollow">http://i.imgur.com/yyISNtZ.png</a></p>
  
  <p>The errors (note these only occur when referencing any GLFW function. They don't occur by simply including the header):</p>
  
  <pre><code>13:33:00 **** Incremental Build of configuration Release for project MementoLibrary ****
  Info: Internal Builder is used for build
  gcc -O3 -Wall -c -fmessage-length=0 -o "src\\MementoLibrary.o" "..\\src\\MementoLibrary.c" 
  gcc -o MementoLibrary.exe "src\\MementoLibrary.o" -lglfw3 -lglew32s -lopengl32 
  c:/mingw64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/lib/../lib/libglfw3.a(win32_monitor.c.obj):win32_monitor.c:(.text+0x2a7): undefined reference to `__imp_CreateDCW'
  c:/mingw64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/lib/../lib/libglfw3.a(win32_monitor.c.obj):win32_monitor.c:(.text+0x2e9): undefined reference to `__imp_GetDeviceCaps'
  c:/mingw64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/lib/../lib/libglfw3.a(win32_monitor.c.obj):win32_monitor.c:(.text+0x2fb): undefined reference to `__imp_GetDeviceCaps'
  c:/mingw64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/lib/../lib/libglfw3.a(win32_monitor.c.obj):win32_monitor.c:(.text+0x31e): undefined reference to `__imp_DeleteDC'
  c:/mingw64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/mingw64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/lib/../lib/libglfw3.a(win32_monitor.c.obj): bad reloc address 0x0 in section `.pdata'
  collect2.exe: error: ld returned 1 exit status
  </code></pre>