title: wxwidget build failed - windows - mingw - mingw32-make: *** [..\..\lib\gcc_dll\wxmsw313u_gcc_custom.dll] Error 1
body: <p>I was trying use build <code>wxWidgets-3.1.3</code> with <code>MinGW-W64</code> on a <code>x64</code> windows machine.</p>
  
  <p>I followed <a href="https://stackoverflow.com/a/44416220/10305444">this</a> thread, which lead me to download and building. So I installed it and some youtube videos said I need to build it now. So navigate to the installed folder and gave this command :</p>
  
  <p><strong><code>mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1</code></strong>.</p>
  
  <p>It took almost half an hour and now it's giving me error saying :</p>
  
  <pre><code>collect2.exe: error: ld returned 1 exit status
  makefile.gcc:5329: recipe for target '..\..\lib\gcc_dll\wxmsw313u_gcc_custom.dll' failed
  mingw32-make: *** [..\..\lib\gcc_dll\wxmsw313u_gcc_custom.dll] Error 1
  </code></pre>
  
  <p>Here is the full log file :</p>
  
  <p><a href="https://pastebin.com/zxeHhF6K" rel="nofollow noreferrer">https://pastebin.com/zxeHhF6K</a></p>
  
  <p>MinGW configuration :</p>
  
  <pre><code>Version : 8.1.0
  Architecture : x86_64
  Threads : posix
  Exceptions : seh
  Build version : 0
  </code></pre>
  
  <p>How can I solve this? I'm using CLion, is there any other short or easy way?</p>