Code::Blocks uses it's own fork of wxScintilla, because it's not maintained upstream since a long time.
You have to use wxWidgets with wxSTC disabled, otherwise you will most likely run into errors.
You can not disable C::B's (wx)Scintilla, because we use a lot of C::B specific patches.