Bug: source file on a different drive

General questions regarding the usage of CodeLite
HJarausch
CodeLite Veteran
Posts: 98
Joined: Thu Feb 18, 2010 10:54 pm
Genuine User: Yes
IDE Question: C++
Contact:

Bug: source file on a different drive

Post by HJarausch »

Hi,

CodeLite is installed on drive C.
When creating a project I use "add an existing file". CodeLite doesn't compile the file if that source file is on a different drive.
E.g. "add an existing file"
D:\MyFile\Test.cpp

I can edit this file, but when I try to build the project, the compiler cannot find the source file.
The compiler gets the file name "\MyFile\Test.cpp", i.e. without the drive name!

This is with the 5770 version.
How can this be fixed and how can I recompile CodeLite myself. (I'd like to stick to the 5770 version).

Thanks for looking into it,
Helmut.
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Bug: source file on a different drive

Post by eranif »

This is not a bug - works as intended.
HJarausch wrote:CodeLite is installed on drive C.
When creating a project I use "add an existing file". CodeLite doesn't compile the file if that source file is on a different drive.
E.g. "add an existing file"
D:\MyFile\Test.cpp
Your problem is not where you installed codelite, the problem is that your workspace and project files are not on the same drive as your source files.
Make sure that your workspace + project + sources files are all placed on the same drive - and the problem will be solved

codelite does not keep absolute paths in the project files (or the project files will be useless on different machines)

Eran
Make sure you have read the HOW TO POST thread
Post Reply