Where did you get the codeblocks from? Our site or mint/ubuntu's repos?
What is the wxgtk package you're using? gtk2 or gtk3?
apt list --installed | grep wx
$apt list --installed | grep wx
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
libwxbase3.0-0v5/xenial-updates,now 3.0.2+dfsg-1.3ubuntu0.1 amd64 [installed,auto]
libwxgtk3.0-0v5/xenial-updates,now 3.0.2+dfsg-1.3ubuntu0.1 amd64 [installed,auto]
wxcrafter/stable,now 2.9-1unofficial.xenial amd64 [installed]