Eclipse CDT: no rule to make target all

前端 未结 11 1185
野性不改
野性不改 2020-12-08 00:22

My Eclipse CDT keeps complaining \"make: *** no rule to make target all\" when I am trying to compile the piece of code below:

#include 
us         


        
11条回答
  •  盖世英雄少女心
    2020-12-08 00:59

    You have 2 cases

    • If you create Makefile by yourself, go to
    1. Select Project->Properties from the menu bar.
    2. Click C/C++ Build on the left in the dialog that comes up.
    3. Disable generate makefile automatically -> Under the Builder Settings tab on the right, check and make sure the "Build location" is correct (That location is where your Makefile)
    • If you don't have Makefile -> You need Eclipse DS-5 to help you create Makefile
    1. Select Project->Properties from the menu bar.
    2. Click C/C++ Build on the left in the dialog that comes up.
    3. Enable generate makefile automatically

    I advise you create Makefile by your self

提交回复
热议问题