好吧,我正在考虑做一个多语言项目。 我正在看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. ...更多推荐
发布评论