To reprint please indicate the source
first look at the background of the cue message Make : * * * No rule to do target ' all '. Stop
- Create a C project on eclipse (note: Empty Project under Project Type:makefile project)
- Add a C language file
- Edit your own makefile
- Click Project->clean to clear the resulting file
- Clicking Project->build Project will cause this error
Reason
The first thing to know from the tip is that current project has no way of making taget ' all ', so it is likely that the compilation settings of current project are incorrect.
Next, locate the configuration current Project build in the IDE on the project->properties->c/c++ build.
Finally, under the Behavior tab (behavior or Rules) tab in C + + build, you see a build (Incremental build) checkbox and a text box (the content is all), and try to get rid of all in the compilation by
or variable after the build (Incremental build). button, select Build_project or build_files to compile the pass.
Solve
Under the Behavior tab (behavior or Rules) tab in C + + build, see a build (Incremental build) checkbox and a text box (content is all)
Workaround 1: Remove all in the compilation will pass
Workaround 2: variable after build (Incremental build). button, select Build_project or build_files to compile the pass.
Workaround 3: After the build (Incremental build), enter the-f Makefile in the text box, which can be compiled through.
Summarize
Build (Incremental build) means to increase the compilation rules (easy to understand point is to add the following parameters), the default is all, because makefile in the all tag does not exist, so will appear make: * * * No rule to make T arget ' all '. Stop.
So remove all, real make
Add-f Makefile, essentially make-f Makefile
In variable. Button button to select Build_project or build_files, essentially make-f Makefile
Eclipse C/c++ide Compile Make: * * * No rule to make target ' all '. Stop. Solutions