I'm a new IT student learning C now. After install CodeBlocks on my mac I was unable to run the program after compilation. It always says no such file or directory. Here are the screenshot: http://i.imgur.com/Rq2wHpm.png
Place your project or program in a path without spaces and it will work I think.