17

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,120
  • 1
  • 20
  • 32
Joel Seah
  • 674
  • 3
  • 13
  • 34

1 Answers1

21

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,884
  • 2
  • 24
  • 39