title: The procedure entry point __gxx_personality_sj0 could not be located in...
body: <p>I have managed to (somehow) cross-compile Qt5 with the Mingw-w64 Project's compiler for 32-bit Windows. All of the libraries have been installed to <code>~/i686-w64-mingw32</code>.</p>
  
  <p>I have a CMake-based Qt project that I am trying to cross-compile. By following <a href="http://www.vtk.org/Wiki/CMake_Cross_Compiling">these instructions</a>, I have been able to get the project to compile. So far so good.</p>
  
  <p>Unfortunately, when executing the resulting binary on Windows, I end up getting an error:</p>
  
  <blockquote>
    <p>"The procedure entry point __gxx_personality_sj0 could not be located in the dynamic link library [application_name].exe"</p>
  </blockquote>
  
  <p><sup>* [application_name] is the full path to the main executable</sup></p>
  
  <p>I've heard that this type of problem can sometimes be caused by mixing libraries compiled with different versions of MinGW. But everything on this machine (all of the libraries and the executable) have all been compiled by the same compiler (the <code>i686-w64-mingw32</code> toolchain).</p>
  
  <p>Also, I find it odd that the error complains about the entry point being missing from the application executable instead of one of the <code>.dll</code> files.</p>
  
  <p>What could cause this error and what can be done to remedy it?</p>