*** No rule to make target 'class.cpp', needed by `build/....x86/class.o` Stop. error in Ubuntu

c++, compilation, gnu-make

Solution

You get this error when you don't have a file (`Checker.cpp`) here to `make`. Its probably for the following reasons :

- Your current directory is not the directory in which your file resides.

- The file may have been moved to somewhere else.

- Or the worse , the file doesn't exist.

Problem

I got this error trying to build and compile my program. Now I can't open all my .cpp files in my program. make[2]: * No rule to make target `Checker.cpp', needed by `build/Debug/GNU-Linux-x86/Checker.o'. Stop. Anyone can help me with this? I have checked all the online sources but I can't seem to find a solution. I desperately need this solved. Appreciate any help given.

Original source

Related problems