Eclipse, how to generate "auto/update-makefile" for a project [message #1820525] |
Wed, 22 January 2020 02:16  |
Eclipse User |
|
|
|
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 #1820631 is a reply to message #1820628] |
Thu, 23 January 2020 23:34  |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.03681 seconds