Skip to main content



      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 02:16 Go to next message
Eclipse UserFriend
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 15:50 Go to previous messageGo to next message
Eclipse UserFriend
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] Thu, 23 January 2020 21:19 Go to previous messageGo to next message
Eclipse UserFriend
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] Thu, 23 January 2020 23:34 Go to previous message
Eclipse UserFriend
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 Jun 20 22:44:33 EDT 2025

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

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

Back to the top