This is because you (presumably) built wxWidgets in release mode. I only build mine in release mode, and simply ignore this warning. The wxWidgets debug libraries contain code for debugging wxWidgets (probably
not what you are trying to do). I always tell Code::Blocks not to create a debug target; instead, I copy the release target and change the flags so it does not optimize, and does emit debug symbols.
If you have a problem compiling a wxWidgets application in release mode, then you have a setup problem, and should give some more specifics (
full command line log) in your description.