Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Eclipse, how to generate "auto/update-makefile" for a project(Is it possible to update a makefile automatically on Eclipse.)
Eclipse, how to generate "auto/update-makefile" for a project [message #1820525] Wed, 22 January 2020 07:16 Go to next message
Elie Costa is currently offline Elie CostaFriend
Messages: 1
Registered: January 2020
Junior Member
I'm new to eclipse, I would like to know if it's possible to update a makefile automatically on Eclipse.

If I create a new project, "test.cpp", a makefile is generated and that's correct. But if I add a new class in this project, we have to update the makefile or Eclipse can manage it? Because when I test it, I get a "recipe for taget 'test' failed" error

What i did (for this example) is created a new "Exectuable->Empty Project" and added a new class to this project

Thanks you I hope it will help beginners like me
Re: Eclipse, how to generate "auto/update-makefile" for a project [message #1820609 is a reply to message #1820525] Thu, 23 January 2020 20:50 Go to previous messageGo to next message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
Configuring an empty project can be a daunting task.
Suggest you delete the project then create an HelloWorld project
and rename/modify/add source files.

Eclipse will update the makefile on every build.
Re: Eclipse, how to generate "auto/update-makefile" for a project [message #1820628 is a reply to message #1820525] Fri, 24 January 2020 02:19 Go to previous messageGo to next message
Helen Keller is currently offline Helen KellerFriend
Messages: 173
Registered: June 2019
Senior Member
Thanks for asking this.
Just a comment.

In MY view - the relations between make, complier and IDE is something very seldom discussed.
(some may find it too obvious )
And IDE is hiding the whole process very well too.

Sort of - "who is on first..." dilemma.
Cheers
Re: Eclipse, how to generate "auto/update-makefile" for a project [message #1820631 is a reply to message #1820628] Fri, 24 January 2020 04:34 Go to previous message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
Eclipse is pretty much like any other IDE.
It gives you a way to organize projects and build them.
It really is just an editor combined with interfaces to various tools.

Eclipse builds a project by executing make or a similar tool.
Make is a tool that produces files in topological order.
The concept has been around for 50 some years.

Eclipse supplies the ability to configure some rudimentary rules for make.
In doing so it needs information about tools employed by make.
Those are compilers, linkers, etc that generate files.

The fundamental assumption in Eclipse is the user knows how make works.
Along with knowing how to build a project in general.
Using Eclipse as a black box is a lot like buying a house
with a well equipped kitchen then expecting to be able to cook without prior experience.
Previous Topic:method for setting up separate src and build directories
Next Topic:How to modify projects nest?
Goto Forum:
  


Current Time: Fri Apr 26 12:44:09 GMT 2024

Powered by FUDForum. Page generated in 0.03029 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top