开发者

Comprehensive gnu make / gcc tutorial [closed]

开发者 https://www.devze.com 2022-12-18 12:14 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.

Closed 8 years ago.

Improve this question

I've just started learning C++ and I find it very hard to find short, comprehensive tutorials on ho开发者_开发问答w to use gnu make / gcc. Any ideas (please don't point me to the official gnu make tutorial, it's way too much in-depth for my purposes ;-)).


Check the book Managing Projects with GNU Make.
The entire text of this book is available online. Part I of this book covers the basic concepts, which I think would help you get comfortable with GNU Make.


This doesn't directly answer your question, but anyway ...

Firstly, make and gcc are two completely different packages - you are unlikely to find a good tutorial that covers both satisfactorily.

Secondly, the GNU make manual & tutorial is one of the best I've ever come across. make is a complex beast - you need the in-depth stuff, particularly if you intend to read or use other people's makefiles.

Regarding gcc, I suppose the obvious question is "what do you want to know". Like make, gcc is an extremely complex piece of kit.


As you are just learning, you might want to focus solely on the C/C++ language. An IDE really helps these days -- in that regard. Netbeans works very well as an IDE that gets your typing C/C++ ASAP. It compiles quite sensibly as well. Another good IDE (believe it or not) is Visual Studio -- it's point and click style of setting up a build environment is quite granular.

After your needs diversify I would suggest the following :

I've learned make and gcc a few times, and there is just too much their too remember -- i.e., once you have a build environment going you are likely to forget the intricacies. So as a piece of advice I would suggest not learning them. Instead pick one of the good tools out there that abstract make and autotools away (the way an IDE like Netbeans does). You might want to "learn" one of those tools instead. Learning how to use make and auto tools is quite a time-sink.

One such tool is cmake.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号