title: Can't build PSmove API with MinGW 5.3.0, multiple definitions
body: <p>I downloaded the PSmove API source code from <a href="https://github.com/thp/psmoveapi" rel="nofollow noreferrer">https://github.com/thp/psmoveapi</a>. Then I generated the makefile using CMake 3.14.0-rc2. As the next step I used Code::Blocks 17.12 to start the build process with minGW 5.3.0 under Windows 10 64-bit.</p>
  
  <p>The compiling process works fine, but then during the linking process I receive the following error messages:</p>
  
  <p>Linker error:</p>
  
  <p><a href="https://i.stack.imgur.com/tuAYy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tuAYy.png" alt="linker error"></a><br>
  <sup>(Click images to enlarge)</sup>  </p>
  
  <p>Log before error appears:</p>
  
  <p><a href="https://i.stack.imgur.com/CVN4Q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CVN4Q.png" alt="log before error appears"></a></p>
  
  <p>There are a lot of multiple definitions in libpthread and libmingwex and at the moment I am a bit lost how to get rid of this errors.</p>