Makefile [message #1784093] |
Thu, 22 March 2018 12:47  |
Eclipse User |
|
|
|
I've just downloaded Eclipse and added the compiler.
Now I need to add the makefile but I didn't understand if I have to write it (and in that case how I do it?) or if I can download something that does it automatically for me.
|
|
|
|
Re: Makefile [message #1784157 is a reply to message #1784150] |
Fri, 23 March 2018 01:48   |
Eclipse User |
|
|
|
In addition to what Seth has told you,
Create a C or C++ HelloWorld project for an example.
The makefiles will be in the <project>/Debug and <project>/Release directories.
Your source should be placed in the <project>/src directory.
---
Writing a makefile is not particularly hard but it isn't trivial either.
How to write one is generally off-topic for this forum.
Search for "using make" and "gnu make tutorial".
The GNU make manual: https://www.gnu.org/software/make/manual/make.html
|
|
|
Re: Makefile [message #1784208 is a reply to message #1784157] |
Fri, 23 March 2018 14:05   |
Eclipse User |
|
|
|
I'm quite new to C++ and other languages in general and it's quite confusing, I have a basic idea on how to write a makefile but if I can avoid i'd be happier.
I have Eclipse already installed in my laptop, however someone else set it up for me but I remembered that he installed 'cmake'.
Have you heard of it? And in that case do you know if it serves my purpose?
|
|
|
|
Re: Makefile [message #1784266 is a reply to message #1784240] |
Sun, 25 March 2018 20:05   |
Eclipse User |
|
|
|
Hello Mr. David,
Seth here. Thank you for the link to "make" on gnu.org.
Seth
P.S. I needed to read up more on it, too.
|
|
|
Re: Makefile [message #1785049 is a reply to message #1784208] |
Sun, 08 April 2018 17:32  |
Eclipse User |
|
|
|
Creating a c or c++ project will automatically create a makefile for the project. I've done this several times. Just look in the debug directory and you will find it.
|
|
|
Powered by
FUDForum. Page generated in 0.03398 seconds