15

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.

Petr Matousu
  • 3,002
  • 1
  • 17
  • 31
Joel Seah
  • 654
  • 3
  • 13
  • 34

1 Answers1

19

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.
0decimal0
  • 3,828
  • 2
  • 22
  • 38