gpt4 book ai didi

windows - 如何在 Windows 计算机上安装 GNAT (GNU Ada)?

转载 作者:可可西里 更新时间:2023-11-01 13:22:08 24 4
gpt4 key购买 nike

好的,我正在考虑做一个多语言项目。我正在看 Ada 中的一部分。我已经知道 AdaCore 包,但我需要分别链接每个文件,这意味着直接通过 GCC 可能最容易。

唯一的问题是 GNAT 显然主要是用 Ada 编写的,我似乎无法找到关于如何在任何地方安装它的指南。

MinGW 为我处理了一些其他语言,但显然 GNAT 不包括在内。

提前致谢!

最佳答案

如果您稍后决定安装 MinGW Ada,您可以使用 mingw-get 命令更新现有安装,如下所示,例如mingw-get 安装 ada。可以找到更多详细信息 here .

如本相关 answer 中所建议,替代编译器有其用途.

$ mingw-get --helpManage MinGW and MSYS installations (command line user interface).Usage:  mingw-get [OPTIONS] ACTION [package-spec ...]  mingw-get update  mingw-get [OPTIONS] {install | upgrade | remove} package-spec ...  mingw-get [OPTIONS] {show | list} [package-spec ...]Options:  --help, -h      Show this help text  --version, -V   Show version and licence informationActions:  update          Update local copy of repository catalogues  list, show      List and show details of available packages  install         Install new packages  upgrade         Upgrade previously installed packages  remove          Remove previously installed packagesPackage Specifications:  [subsystem-]name[-component]:  msys-bash-doc   The 'doc' component of the bash package for MSYS  mingw32-gdb     All components of the gdb package for MinGWUse 'mingw-get list' to identify possible package namesand the components associated with each.

附录:在 Windows XP 上,我通过 grep 通过管道传输 mingw-get list 来删除 list

$ mingw-get list | grep -i ada...Package: mingw32-gcc-v3-ada                           Subsystem: mingw32The GNU Ada CompilerThis package provides the MinGW implementation of the GNU  Ada  languagewritten in the Ada language....$ gnatmake --versionGNATMAKE 4.5.2Copyright (C) 1995-2010, Free Software Foundation, Inc....

关于windows - 如何在 Windows 计算机上安装 GNAT (GNU Ada)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8300006/

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