Code::Blocks Forums
User forums => General (but related to Code::Blocks) => Topic started by: neo1691 on August 06, 2012, 02:35:17 pm
-
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.
-
A little less information.
I guess you are on linux and probaly use symlinks for files or directories.
If that's the case, this might help: http://forums.codeblocks.org/index.php/topic,7751.msg58365.html#msg58365 (http://forums.codeblocks.org/index.php/topic,7751.msg58365.html#msg58365)
-
Yes you got me there, I am using linux (ubuntu 12.04 precise with pasgui's repo for codeblocks)
Okay so the symlinks are causing the problem. I have also auto mounted the other drivers on boot, so i will try to directly access the source files from the drives rather than symlinks on linux. If it works ( and it should looking it has a backing from you :P ), i will say good bye to symlinks.