Build Error on Windows when adding existing source code

CodeLite installation/troubleshooting forum
reiy
CodeLite Curious
Posts: 9
Joined: Sun Mar 06, 2011 4:13 pm
Genuine User: Yes
IDE Question: C++
Contact:

Build Error on Windows when adding existing source code

Post by reiy »

Hi,

Platform used is Windows XP; Codelite v2.9.0.4684

When I add an existing source code file from another drive (say drive E:) to a project (say drive C:), there will be build errors as shown in the following:

----------Build Started--------
C:\WINDOWS\system32\cmd.exe /c ""mingw32-make.exe" -j 4 -f "test.mk" all"
----------Building project:[ test - Debug ]----------
mingw32-make.exe: *** No rule to make target `/misc/main.cpp', needed by `Debug/misc_main.o'. Stop.
mingw32-make.exe: *** Waiting for unfinished jobs....
----------Build Ended----------
0 errors, 0 warnings

I think the path for the file "main.cpp" should be "E:/misc/main.cpp". It seems like the makefile rules are not correctly identifying the path of the added existing source code file. Am I correct?

reiy
DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: Build Error on Windows when adding existing source code

Post by DavidGH »

Hi,

I'm afraid it's a CodeLite anti-feature. See e.g. this thread

Regards,

David
reiy
CodeLite Curious
Posts: 9
Joined: Sun Mar 06, 2011 4:13 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Build Error on Windows when adding existing source code

Post by reiy »

That's quite a pity... but thanks for the info anyway!

Hope that one day source codes can exist in different partition... ;)

Rgds,
reiy
Post Reply