Changes are, this has nothing to do with codeblocks.
Your compiler may somehow have generated an executable that is not marked as such.
if you issue from within bash:
Greg-N-Vicki-Nickleskis-MacBook-Pro:~ gregnvickinickleski$ ls -l secondtry
You should have it marked with x like:
-rwxr-xr-x 1 greg greg 123456 Jul 26 19:20 secondtry
If not then issue a:
I assume, you have write access to your own home directory.
And please read the rules:
http://forums.codeblocks.org/index.php/topic,9996.0.html
(http://forums.codeblocks.org/index.php/topic,9996.0.html)