Eclipse CDT: no rule to make target all

前端 未结 11 1153
野性不改
野性不改 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条回答
  • Yet another solution:

    I got inside objects.mk file

    ################################################################################
    # Automatically-generated file. Do not edit!
    ################################################################################
    
    USER_OBJS := /home/../mylib.so
    
    LIBS := -lstdc++fs -lGL -lGLU -lGLEW -lglut -lm -lmylib
    

    then didn't read first line. Then altered next line. It was another projects' folder because I copied this using "copy/clone project" feature and this was causing the error for me. I changed myLib.so into /proper_address/reallyMyLib.so and it worked.

    Warning: It may harm some unknown places! Backup whole project before doing this. Because it says "do not edit".

    0 讨论(0)
  • 2020-12-08 01:08
    1. Select Project->Properties from the menu bar.

    2. Click C/C++ Build on the left in the dialog that comes up.

    3. Under the Builder Settings tab on the right, check and make sure the "Build location" is correct.
    0 讨论(0)
  • 2020-12-08 01:12

    You need to change your project settings so that Eclipse-CDT manages your Makefiles for you.

    1. Select Project->Properties from the menu bar.
    2. Click C/C++ Build on the left in the dialog that comes up.
    3. Under the Builder Settings tab on the right, select "Generate Makefiles automatically" under the Makefile generation section.
    4. Hit OK and build again.
    0 讨论(0)
  • 2020-12-08 01:12

    Sometimes if you are making a target via make files double check that all c files are named correctly with correct file structure.

    0 讨论(0)
  • 2020-12-08 01:17

    Project -> Clean -> Clean all Projects and then Project -> Build Project worked for me (I did the un-checking generate make-file automatically and then rechecking it before doing this). This was for an AVR (micro-processor programming) project through the AVR CDT plugin in eclipse Juno though.

    0 讨论(0)
提交回复
热议问题