title: A lot of undefined reference errors when using wxWidgets(3.0.2) as static build
body: <p>I saw a lot of posts about this but no one helped me... 
  My problem is that I want to use the static build so I can execute the compiled exe of my project without other files...</p>
  
  <p>I compiled wxWidgets with the following commands:</p>
  
  <pre><code>mingw32-make -f makefile.gcc -j4 SHARED=0 MONOLITHIC=1 UNICODE=1 BUILD=release clean
  mingw32-make -f makefile.gcc -j4 SHARED=0 MONOLITHIC=1 UNICODE=1 BUILD=release
  </code></pre>
  
  <p>But when I am using the build in CodeBlocks I get a lot of undefined reference errors</p>
  
  <p>Link with the full list of errors: <a href="http://pastebin.com/2Ccs9nDu" rel="nofollow">http://pastebin.com/2Ccs9nDu</a></p>
  
  <p>In Codeblocks its using the following commands to compile: </p>
  
  <pre><code>mingw32-g++.exe -LD:\wxWidgets-3.0.2\lib\gcc_lib -o bin\Release\Test.exe obj\Release\TestApp.o obj\Release\Test.o obj\Release\resource.res -s -mthreads  -lwxmsw30u -lwxpng -lwxjpeg -lwxtiff -lwxzlib -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lcomctl32 -lwsock32 -lodbc32 -mwindows
  </code></pre>
  
  <p>And these are the liked libarys:</p>
  
  <pre><code>        &lt;Add option="-mthreads" /&gt;
          &lt;Add library="libkernel32.a" /&gt;
          &lt;Add library="libuser32.a" /&gt;
          &lt;Add library="libgdi32.a" /&gt;
          &lt;Add library="libwinspool.a" /&gt;
          &lt;Add library="libcomdlg32.a" /&gt;
          &lt;Add library="libadvapi32.a" /&gt;
          &lt;Add library="libshell32.a" /&gt;
          &lt;Add library="libole32.a" /&gt;
          &lt;Add library="liboleaut32.a" /&gt;
          &lt;Add library="libuuid.a" /&gt;
          &lt;Add library="libcomctl32.a" /&gt;
          &lt;Add library="libwsock32.a" /&gt;
          &lt;Add library="libodbc32.a" /&gt;
  </code></pre>
  
  <p>Can anybody Help me? I red so much about it but I still dont know how I can fix this problem in Codeblocks.
  And sorry if I missed some important part.. I sadly dont know a lot about this topic because I just startet to use it.</p>
  
  <p>PS:
  The non-static build works for me, only the static makes trouble... </p>
  
  <p>PPS:
  I dont think it was a duplication of the post... I dont get the soloution out of the linked page... Please open this post again..</p>
  
  <p>edit:
  here are the linker for the wxWidgets libaries:</p>
  
  <pre><code>            &lt;Linker&gt;
                  &lt;Add option="-s" /&gt;
                  &lt;Add library="libwxmsw30u.a" /&gt;
                  &lt;Add library="libwxpng.a" /&gt;
                  &lt;Add library="libwxjpeg.a" /&gt;
                  &lt;Add library="libwxtiff.a" /&gt;
                  &lt;Add library="libwxzlib.a" /&gt;
                  &lt;Add directory="D:/Project/wxWidgets-3.0.2/lib/gcc_lib" /&gt;
              &lt;/Linker&gt;
  </code></pre>
  
  <p>Edit:
  This is how Code::Blocks compiles my Project</p>
  
  <pre><code>mingw32-g++.exe -LD:\Project\wxWidgets-3.0.2\lib\gcc_lib -o bin\Release\static_Test.exe  
  obj\Release\static_TestApp.o obj\Release\static_TestMain.o obj\Release\resource.res 
  -s -mthreads  -lwxmsw30u_core -lwxbase30u -lwxpng -lwxzlib -lkernel32 -luser32 
  -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lcomctl32 
  -lwsock32 -lodbc32 -mwindows
  </code></pre>