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
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".
Select Project->Properties from the menu bar.
Click C/C++ Build on the left in the dialog that comes up.
You need to change your project settings so that Eclipse-CDT manages your Makefiles for you.
Sometimes if you are making a target via make files double check that all c files are named correctly with correct file structure.
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.