http://forums.codeblocks.org/index.php?topic=21490.0

Solution: When creating a new project in Code Blocks, make sure the folder name you input is accessible like Documents/folder_name