First question:
Did you try pasgui's packages ?
http://forums.codeblocks.org/index.php/topic,11504.msg78403.html#msg78403I think It's good idea to deeply investigate this problem. Ubuntu is one of the major distros and I can see a lot of people have the same problem.
It's up to ubuntu to fix this in my opinion.
They supply a version of wxWidgets-libs, that is not compatible to the one supplied by the wxWidgets-guys themselves.
Debian has an own version of wxWidgets 2.8.10 in their (unstable) repos and that works with C::B compiled and linked with/against wxWidgets from
apt.wxwidgets.org, so there must be a difference between both versions.
If I remember right I read something about this issue on the Ubuntu bug-tracker or in a mailing list (the first version they supplied had the same error as far as I know).
If you compile from svn, make sure you have only one version of wxWidgets 2.8.10 on your system, either remove everything coming from
apt.wxwidgets.org or all the ubuntu-packages (in this case you have to force the use of the
apt.wxwidgets.org packages), make sure,
wx-config points to the correct install (
wx-config --list), run
make clean before running
./configure ..., make sure (of course) there aren't any parts of C::B left in system, except the conf-files in
~/.codeblocks, they should not harm (at least not in this way).
If you install C::B to another prefix than
/usr, you might need to run
ldconfig after installation, see here fore details:
http://wiki.codeblocks.org/index.php?title=Compiling_Code::Blocks_in_Linux_%28applies_to_all_distros%29#Resolving_issues .
And of coures: my C::B packages are compiled on and for debian, they used to work on ubuntu too, unless the ubuntu maintainers break the compatibility of wxWidgets.
If I get a faster internet-connection at home (just ISDN at the moment, it should come at the beginning of september, but they did not say which year
), I probably will supply special packages for all debian flavours, and probably also for ubuntu, or at least for the broken distros (but this depends of the spare time I have).