Recently I am facing a weird problems while using codeblocks. I upgraded to svn 8150 but the problem persists.
Whenever i build a code, it gives me only one error, ie, undefined reference to main.
On observing a little, I found out that the source was not getting saved whenever i press f9 (build). So after doing a ctrl+s followed by f9, this is what used to happen:
1) A new tab is opened with the same file.
2) The file in the new tab is compiled successfully.
I will be try to post more about the problem as I am still trying to figure out what is triggering the problem.