title: GLFW MinGW link error
body: <p>I've been attempting to test out GLFW with C++ for quite a while and am having constant linker issues. I am fairly new to C++, although I have experience in Java and C#, working directly with the compiler is fairly new to me. Here's my setup information.</p>
  
  <p>IDE: Qt Creator</p>
  
  <p>OS: Windows 7 64-bit</p>
  
  <p>Compiler: MinGW32 4.8.1</p>
  
  <pre><code>01:23:26: Starting: "C:\MinGW\bin\mingw32-make.exe" 
  C:/MinGW/bin/mingw32-make -f Makefile.Debug
  mingw32-make[1]: Entering directory 'A:/workspace_cpp/Test-Debug'
  g++ -Wl,-subsystem,console -mthreads -o debug\Test.exe debug/main.o  -lglfw3 -lopengl32 
  c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libglfw3.a(win32_monitor.c.obj):win32_monitor.::(.text+0x2c7): undefined reference to `CreateDCW@16'
  c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libglfw3.a(win32_monitor.c.obj):win32_monitor.c:(.text+0x358): undefined reference to `GetDeviceCaps@8'
  Makefile.Debug:77: recipe for target 'debug\Test.exe' failed
  mingw32-make[1]: Leaving directory 'A:/workspace_cpp/Test-Debug'
  Makefile:34: recipe for target 'debug' failed
  c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libglfw3.a(win32_monitor.c.obj):win32_monitor.c:(.text+0x370): undefined reference to `GetDeviceCaps@8'
  c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libglfw3.a(win32_monitor.c.obj):win32_monitor .c:(.text+0x39e): undefined reference to `DeleteDC@4'
  c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe:     c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libglfw3.a(win32_monitor.c.obj): bad reloc address 0x20 in section `.eh_frame'
  c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: final link failed: Invalid operation
  collect2.exe: error: ld returned 1 exit status
  </code></pre>
  
  <p>The code I'm testing is the code on the <a href="http://www.glfw.org/documentation.html" rel="noreferrer">GLFW Documentation Page</a>, I'm using my own build of GLFW, <a href="https://stackoverflow.com/a/19645093/3350178">and have already tried this</a> and several other potential solutions. I have tried using the prebuilt GLFW mingw libraries but I couldn't get them to work.</p>