score:44
You need to change your project settings so that Eclipse-CDT manages your Makefiles for you.
- Select Project->Properties from the menu bar.
- Click C/C++ Build on the left in the dialog that comes up.
- Under the Builder Settings tab on the right, select "Generate Makefiles automatically" under the Makefile generation section.
- Hit OK and build again.
score:0
If the above solutions did not work for you so -
Could be that you did not install C++ compiler packages properly, flow this: (Instructions for Win7, 32bit/64bit)
Make sure you install properly one or more of the supporting C++ compiler packages:
- Eclipse CDT plugin (Installers page) (Installer guide)
- MinGW package (Install Page)
- Cygwin package (Install page)
(I installed MinGW (HowTo Install Videos can be found on YouTube))
In case you choose to install MinGW packages:
- Download MinGW installer from the Install Page above
Run MinGW installer and make sure to choose the following packages:
- mingw-developer-toolkit
- mingw32-base
- mingw32-gcc-g++
- msys-baseAdd MinGW and MSYS bin paths to your PATH environment variable , if you didn't change the default installation folders you should add:
C:\MinGW\msys\1.0\bin;C:\MinGW\bin;
- Logoff and log back in for making sure Environment vars kicked in
Create a new C++ project in eclipse:
- New -> C++ Projects
- Choose Project type: Executables -> Hello World C++ project
(Now on the right, under Toolchains you shall see MinGW GCC) - Select MinGW GCC from the Toolchains list
- Hit Finish
In you Hello World Project you shall see + src folder, and + Includes (If so you are probably good to go).
- Build project
- Run it!
score:0
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".
score:2
Sometimes if you are making a target via make files double check that all c files are named correctly with correct file structure.
score:2
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.
score:2
I got this same error after renaming and moving around source files. None of the proposed solutions worked for me and I tracked the error to be the meta-files under Debug directory not being updated. Deleting the entire Debug directory and re-build the project solved the problem for me.
score:5
You have 2 cases
- If you create Makefile by yourself, go to
- Select Project->Properties from the menu bar.
- Click C/C++ Build on the left in the dialog that comes up.
- 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
- Select Project->Properties from the menu bar.
- Click C/C++ Build on the left in the dialog that comes up.
- Enable generate makefile automatically
I advise you create Makefile by your self
score:6
I just solved this exact issue for myself; even referenced this question.
I'm assuming you haven't written the "all" rule that Eclipse is complaining about. If this is the case, take these steps:
- Go to Project Properties > C/C++ Build > Behaviour Tab.
- Leave Build (Incremental Build) Checked.
- Remove "all" from the text box next to Build (Incremental Build).
- Compile away!
This lets Eclipse know you aren't trying to use a make target called "all". For some reason, that is the default.
score:10
In C/C++ Build -> Builder Settings, select Internal builder (instead of External builder).
It works for me.
score:13
Select Project->Properties from the menu bar.
Click C/C++ Build on the left in the dialog that comes up.
- Under the Builder Settings tab on the right, check and make sure the "Build location" is correct.
score:19
"all" is a default setting, even though Behaviour->Build (Incremental build) tab has no variable. I solved as
- Go to Project Properties > C/C++ Build > Behaviour Tab.
- Leave Build (Incremental Build) Checked.
- Enter "test" in the text box next to Build (Incremental Build).
- Build Project. You will see error message.
- Go back to Build (Incremental Build) and delete "test".
- Build Project.
Source: stackoverflow.com
Related Query
- Eclipse CDT: no rule to make target all
- Eclipse Juno CDT Error: No rule to make target `all'
- make: *** No rule to make target `all'. Stop. Eclipse error
- "make: *** no rule to make target 'all' Eclipse Error
- Problems with adding Icon to executable (Eclipse CDT Luna): make: *** No rule to make target 'resources.o'
- Makefile error: make: *** No rule to make target `genesha.main.java.Jni.class', needed by `FileOperationsLibrary.h'. Stop." in Eclipse (Windows)
- Is there a way to have Eclipse automatically make all my variables final?
- How can I make Eclipse to break on ALL uncaught exceptions?
- How can I make Eclipse CDT auto-indent properly when using BOOST_FOREACH?
- How can I make eclipse CDT ignore errors?
- make: *** No rule to make target `main.o'
- Eclipse CDT Build Configurations - Build All at once
- How to make Eclipse (pydev) automatically fold all comments when opening a file?
- make file project with existing code is missing optimization option in eclipse cdt
- Make Eclipse CDT pre-include a header file, to avoid error: "Symbol <symbol> could not be resolved"
- Make Eclipse list (only) all enum entries on assignment of variable of enum type
- Export / import Eclipse cdt make targets
- How to make Eclipse expand all code when a file is opened?
- Make eclipse ignore all errors in current project
- ERROR: make.exe:***No rule to make target
- How to do remote debugging in Eclipse CDT without running `gdbserver` manually on the target every time?
- Make eclipse save an XML file after undoing all its changes?
- Make eclipse CDT ignore errors on certain functions
- Eclipse CDT - new Makefile project with existing code - change global default build target
- How to make Eclipse Compiler copy existing class files to the target dir?
- Make Eclipse CDT properly ignores my GSL span header
- Why does Eclipse CDT generate a binary file when I make a .out extension file (instead of making a regular text file)
- How to make eclipse cdt UI Blocking code run in background and show the result in an editor after finishing the run?
- Hybris ant all is failing in eclipse while building the below target in build.xml file
- Eclipse CDT build always rebuild all files
More Query from same tag
- Error While deploying a project from CVS in Eclipse
- Weblogic slow with Eclipse breakpoints
- how do i take step reverse while doing debugging in eclipse ide for java
- java - AWT fillOval not drawing new object
- which eclipse to select for mapreduce programs?
- Console does not output anything (Eclipse Java)
- Program Not Creating File. What is Wrong?
- Does eclipse.org have a user feedback forum?
- Java compiler errors in Ubuntu
- Debugging Groovy scripts running in a ScriptEngine from Eclipse
- How do I run a DropWizard / Jersey server locally without having to restart & repack to get asset file updates?
- Add a custom file to Eclipse/Mule Studio for any NewProjects automatically
- How to run GWT in production mode
- Is eclipse uses proguard every built of project?
- How to see .htaccess files in Eclipse PDT?
- New comparison of Eclipse and NetBeans
- Eclipse 4.12 comment out multiple lines in .gradle file with hotkey
- Eclipse Android SDK Manager Warning: null
- How to create an eclipse theme?
- Install intel haxm android
- How to merge deleted/changed file in eGit
- Eclipse Oxygen: 'Download additional server adapters' link missing
- I switched from ADT to Android Studio: You uploaded an APK that is signed with a different certificate to your previous APKs
- Any of java type or classes is recognized by Eclipse
- Define a method in DSLD (Parameter types)
- Some format in MyEclipse
- Cannot perform operation. Computing alternate solutions, may take a while STS?
- Can't find maven eclipse builder
- How to specify a custom action on Java exception in Eclipse IDE?
- How to check whether the cursor is in an eclipse editor part?