gpt4 book ai didi

g++ - 如何构建 g++

转载 作者:行者123 更新时间:2023-12-04 06:48:33 27 4
gpt4 key购买 nike

我目前正在尝试让 g++ 工作,并查看 http://gcc.gnu.org/install/build.html ,我似乎找不到它在哪里说如何“执行编译器的 3 阶段 bootstrap ”。我在哪里可以找到这些信息?

(我在 mac 上,以防万一。)

最佳答案

如果您的平台上没有已经运行的编译器,您将无法引导 GCC:

From the prerequisites page :

ISO C90 compiler
Necessary to bootstrap GCC, although versions of GCC prior to 3.4 also allow bootstrapping with a traditional (K&R) C compiler.



为了抢占您的下一个问题,您还需要一个功能正常的编译器(通常是 GCC)来构建 Clang+LLVM。

有可能做你想做的 trying so hard to do ,通过从其他平台交叉编译 GCC ( see this section of the documentation )。但我想这不是装腔作势,你会很远, 最好简单地将您的 Mac OS X 副本更新到具有 Xcode 支持的最新版本。

关于g++ - 如何构建 g++,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3446585/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com