One possible thing to check is that you 're not having other wx DLLs lying around in the system paths (e.g. in \windows\system32). The point is that the same wx DLL must be used by the app *and* the plugins.
Because you 're having problems when adding a dialog, this indicates trouble with the message (modal) loop. This can be caused by a plugin linked statically to wx or using the wrong wx DLL...
This is the reason C::B only works with wx as a DLL and not as a static lib. It needs to have *only* one main message loop.
I 'll repeat this here once again:
In a "clean" machine (i.e. nothing programming-related installed) everything works as expected.
In my development machine, everything works as expected (obviously :P).
If you 're having trouble, start by deleting every wx DLL you have lying around, except wxmsw26_gcc_cb.dll in codeblocks folder...
Use these options (not all are needed, but I 'm giving the exact same options I use):
Compiler:
-Wall
-g
-pipe
-mthreads
-fmessage-length=0
-fexceptions
-DHAVE_W32API_H
-D__WXMSW__
-DWXUSINGDLL
-DcbDEBUG
-DTIXML_USE_STL
-DBUILDING_PLUGIN
Libs:
libcodeblocks.a
libwxscintilla.a
libwxmsw26.a
As far as wx/setup.h is concerned I haven't edited it.