全面的 gnu make / gcc 教程

发布于 2024-08-20 00:41:20 字数 1491 浏览 3 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

ˉ厌 2024-08-27 00:41:20

查看使用 GNU Make 管理项目一书。
本书的全文可在线获取。本书的第一部分涵盖了基本概念,我认为这将帮助您熟悉 GNU Make。

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.

唱一曲作罢 2024-08-27 00:41:20

这并不能直接回答你的问题,但无论如何......

首先,make 和 gcc 是两个完全不同的包 - 你不太可能找到一个很好的教程来令人满意地涵盖这两个包。

其次,GNU make 手册和指南教程是我遇到过的最好的教程之一。 make 是一个复杂的野兽 - 你需要深入的东西,特别是如果你打算阅读或使用其他人的 makefile。

关于海湾合作委员会,我认为明显的问题是“你想知道什么”。与 make 一样,gcc 是一个极其复杂的工具包。

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.

和影子一齐双人舞 2024-08-27 00:41:20

当您刚刚学习时,您可能只想专注于 C/C++ 语言。如今,IDE 确实很有帮助——在这方面。 Netbeans 作为一个运行良好的 IDE,可以让您尽快输入 C/C++。它的编译也相当合理。另一个好的 IDE(不管你信不信)是 Visual Studio——它设置构建环境的点击式风格非常精细。

在您的需求多样化之后,我建议如下:

我已经学过 make 和 gcc 几次了,而且它们的东西太多了 - 也就是说,一旦您有了构建环境,您就可以可能会忘记其中的复杂性。因此,作为一个建议,我建议不要学习它们。相反,选择一种可以抽象 make 和 autotools 的好工具(就像 Netbeans 等 IDE 所做的那样)。您可能想“学习”其中一种工具。学习如何使用 make 和 auto 工具是相当耗时的。

其中一个工具是 cmake

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文