我已经在我的Windows 10系统上安装了小虫GPL 2017。现在,我想在Linux的Windows子系统上运行的linux中调用编译器。通过将我的GNAT安装的bin目录添加到路径中,我得到了以下内容:
$ gnatmake.exe -P yaml.gpr但是,使用GPRBuild不起作用:
$ gprbuild.exe -P yaml.gpr
gprbuild: could not locate gprconfig for auto-configuration我试图从命令行调用gprconfig,并得到了以下结果:
$ gprconfig.exe
No compilers found for target i686-pc-mingw32似乎gprbuild和gprconfig在定位GNAT二进制文件方面有问题,而gnatmake完全能够。我如何让gprbuild开始工作?我需要设置一些环境变量吗?
发布于 2017-11-06 20:44:48
我可以在我的Windows 10 / Ubuntu子系统上使用gprbuild构建项目,而不需要任何额外的操作。我在linux 中有一个gnat目录,它看起来与linux子系统中使用的路径相同。它看起来像路径中的gprconfig搜索编译器。您可以尝试使用gprconfig.exe --mi显示编译器来检查它是否找到它们中的任何一个.
亲切的问候
https://stackoverflow.com/questions/47143580
复制相似问题