Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

absolute path in workspace file while using linux

<< < (2/2)

Jenna:
Ijust give it a short try, for a project residing on a vfat-partition, that I have mounted in a directory in winxp and mounted "normally" in linux.

I have got the exactly same workspaces for windows and linux, except for the filepath-seperators (slash on linux and backslash on windows).

The difference is, that my linux is a "real" (standalone) linux and not colinux.
I don't know if that can cause the problems.

glorinand:
Hi there! I experience this problem as well.

It happens when I create my workspace in, say, /home/username/workspace_dir/. Let's say that my workspace contains the following projects:
/home/username/workspace_dir/proj1.cbp,
/home/username/workspace_dir/proj2.cbp.

Then however I decide that I use this workspace rather often and I make a symbolic link like so: ln -s /home/username/workspace_dir/ home/username/Desktop/workspace_dir, so that I don't have to go running through my all directories every time I want to access it.

However, Code::Blocks does not seem to get this and instead of simple entries like proj1.cbp and proj2.cbp, the workspace will now contain ../workspace_dir/proj1.cbp and ../workspace_dir/proj2.cbp.

glorinand:
Btw. – jomeggs, if this applies to you as well, you may work around this by creating a launcher (e.g. nautilus /home/username/workspace_dir/) instead of a symlink; that should help – at least until this behaviour gets fixed.  :)

Jenna:
With symlinks you will run into trouble in debug mode.
See here and the following posts, I posted a possible solution in the same thread.

glorinand:
Ah, you are right, that did happen from time to time as well... I never figured it was related. XD

Navigation

[0] Message Index

[*] Previous page

Go to full version