Eclipse C/c++ide Compile Make: * * * No rule to make target ' all '. Stop. Solutions

Source: Internet
Author: User

To reprint please indicate the source


first look at the background of the cue message  Make : * * * No rule to do target ' all '. Stop

    1. Create a C project on eclipse (note: Empty Project under Project Type:makefile project)
    2. Add a C language file
    3. Edit your own makefile
    4. Click Project->clean to clear the resulting file
    5. 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.