Read-only archive of the All About Symbian forum (2001–2013) · About this archive

No rule to make target

2 replies · 2,025 views · Started 30 October 2006

Hi,
I'm using Carbade.c++ and UIK3.0 SDK
When I try building one of my projects, I get:

*** No rule to make target `../SomeFile.cpp', needed by `SomeFile.o'.

Strange thing (for me) is that MMP file is in the same directory with SomeFile.cpp and I have
"SOURCEPATH ."
"SOURCE SomeFile.cpp"
in my MMP file and eror says '../SomeFile.cpp' as if the files were in the different directories!? Did I get this wrong?
A friend suggested that it is the path from the makefile to cpp file but that would actually have to be '../../SomeFile.cpp' judging by the directory structure.
What I did was to have all of the files I needed into one directory and then make that directory workspace from Carbide. Any idea what is causing this message?
Thanks,
elgrande 😃

Apparently, makefile specified that the files were on the place they were not. I solved the problem by manually copying the files to the location makefile "prefers".
My guess is that it has to do with the fact that both my workspace and my project have the same name (so the hierarchy is: \Name(workspace)\Name(project)) because it didn't happen to my other projects with different names than their workspaces.
Still, it's only my guess 😊
Cheers,
elgrande 😃