Author Topic: New tab with the same file on compilation!!!  (Read 3320 times)

Offline neo1691

  • Multiple posting newcomer
  • *
  • Posts: 68
New tab with the same file on compilation!!!
« 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.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: New tab with the same file on compilation!!!
« Reply #1 on: August 06, 2012, 02:40:08 pm »
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

Offline neo1691

  • Multiple posting newcomer
  • *
  • Posts: 68
Re: New tab with the same file on compilation!!!
« Reply #2 on: August 06, 2012, 02:48:50 pm »
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.