First, some credits,
the patch about auto-import comes from this post by Dave Korn and slightly modified by me
[PATCH] Silence ld auto-import warnings for pe-i386.
http://sourceware.org/ml/binutils/2009-02/msg00341.html and the patch about dllexport is just a removal of nathan's code.
r147799 | nathan | 2009-05-22 22:57:15 +0800 (Fri, 22 May 2009) | 16 lines
gcc/
* tree.c (handle_dll_attribute): Mark dllexport'd inlines as
non-external.
gcc/cp
* decl2.c (decl_needed_p): Consider dllexport'd functions needed.
* semantics.c (expand_or_defer_fn): Similarly.
gcc/testsuite/
* gcc.dg/dll-6.c: New test.
* gcc.dg/dll-6a.c: Likewise.
* gcc.dg/dll-7.c: Likewise.
* gcc.dg/dll-7a.c: Likewise.
* g++.dg/ext/dllexport2.C: Likewise.
* g++.dg/ext/dllexport2a.cc: Likewise.
I have just built codeblocks r6216 (gcc-4.5,wxmsw 2.8.11), startup ok, cannot open code editor (maybe too slow), I then check another build of codeblocks r6216 (gcc-4.4,wxmsw 2.8.11), same problem. I think I should try wxmsw 2.8.10.
Update: I close many programs and codeblocks works fine now.