Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 487
Joel Seah Avatar asked Jul 26 '13 18:07

Joel Seah


1 Answers

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.
like image 88
0decimal0 Avatar answered Sep 28 '22 02:09

0decimal0