如何在Windows计算机上安装GNAT(GNU Ada)?(How do you install GNAT (GNU Ada) on a Windows computer?)

编程入门 行业动态 更新时间:2024-10-21 16:19:22
如何在Windows计算机上安装GNAT(GNU Ada)?(How do you install GNAT (GNU Ada) on a Windows computer?)

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

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

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

提前致谢!

Alright, I'm looking into doing a multi-language project. I'm looking at part of that being in Ada. I'm already aware of the AdaCore packages, but I would need to link each file separately, meaning it would probably be easiest to go straight through GCC.

The only problem is that GNAT is apparently mostly written in Ada and I can't seem to find a guide on how to install it anywhere.

MinGW took care of a few of the other languages for me, but apparently GNAT wasn't included in that.

Thanks in advance!

最满意答案

如果您以后决定安装MinGW Ada,可以使用mingw-get命令更新现有安装,如下所示,例如mingw-get install ada 。 更多细节可以在这里找到。

另一个编译器有其用途,如相关答案所示 。

$ mingw-get --help Manage 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 information Actions: 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 packages Package 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 MinGW Use 'mingw-get list' to identify possible package names and the components associated with each.

附录:在Windows XP上,我通过grep管道mingw-get list来削减list 。

$ mingw-get list | grep -i ada ... Package: mingw32-gcc-v3-ada Subsystem: mingw32 The GNU Ada Compiler This package provides the MinGW implementation of the GNU Ada language written in the Ada language. ... $ gnatmake --version GNATMAKE 4.5.2 Copyright (C) 1995-2010, Free Software Foundation, Inc. ...

If you later decide to install MinGW Ada, you can update your existing installation using the mingw-get command, shown below, e.g. mingw-get install ada. More details may be found here.

An alternative compiler has its uses, as suggested in this related answer.

$ mingw-get --help Manage 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 information Actions: 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 packages Package 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 MinGW Use 'mingw-get list' to identify possible package names and the components associated with each.

Addendum: On Windows XP, I piped mingw-get list through grep to pare the list.

$ mingw-get list | grep -i ada ... Package: mingw32-gcc-v3-ada Subsystem: mingw32 The GNU Ada Compiler This package provides the MinGW implementation of the GNU Ada language written in the Ada language. ... $ gnatmake --version GNATMAKE 4.5.2 Copyright (C) 1995-2010, Free Software Foundation, Inc. ...

更多推荐

本文发布于:2023-08-07 02:54:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1458890.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:机上   如何在   Windows   GNAT   computer

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!