简体   繁体   English

什么是 GCC 和 minGW,它们与 C++ 有什么关系?

[英]What is GCC and minGW, and how are they related to C++ ?

In the IDE InteliJ, also by Jetbrains, you download and define a path to the JDK and write your code in the code editor.在同样由 Jetbrains 提供的 IDE InteliJ 中,您可以下载并定义 JDK 的路径,然后在代码编辑器中编写代码。 I am learning C++ right now and am confused as to why I need to download MinGW and G++.我现在正在学习 C++,对为什么需要下载 MinGW 和 G++ 感到困惑。 What is there purpose and what is their function?有什么目的,它们的功能是什么? I am sorry if this is an overly stupid question but I am still quite new to how IDEs and libraries work and would greatly appreciate any help regarding this question or any resources that might answer them for me.如果这是一个过于愚蠢的问题,我很抱歉,但我对 IDE 和库的工作方式仍然很陌生,并且非常感谢有关此问题的任何帮助或任何可能为我回答这些问题的资源。

C++ is a compiled language. C++ 是一种编译语言。 A compiler creates executable snippets from source code that can be assembled into a program.编译器从可以组装成程序的源代码中创建可执行片段。 You need to download that stuff because Jetbrains is not a compiler.您需要下载那些东西,因为 Jetbrains 不是编译器。

You have plenty of resources online as what a compiler does.您在 网上有很多资源,就像编译器所做的那样。 The link is quite dated though.不过这个链接已经过时了。

MinGW is "Minimalist GNU for Windows", The GNU toolchain is a set of apps that helps with building applications (and more). MinGW 是“Minimalist GNU for Windows”,GNU 工具链是一组帮助构建应用程序(以及更多)的应用程序。 In that toolchain there is the GNU compiler collection GCC.在该工具链中有 GNU 编译器集合 GCC。 The c++ compiler within that collection is g++.该集合中的 c++ 编译器是 g++。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM