我正在尝试在 gnatbench (C/C++) 中构建一个多语言项目,它只是忽略了构建我的 c++ 代码。我的项目文件如下所示:
project Ralt_Pss is
for Main use ("locationalpsses_part_main.adb");
for Languages use ("Ada", "C", "C++");
for Source_Dirs use ("../../../AdaExamples/CPP", "src","../../../AdaExamples/ARINC653", "../../../ada_common/face");
for Object_Dir use "obj";
package Compiler is
for Default_Switches ("ada") use ("-g", "-gnato", "-gnatwa", "-gnatQ", "-gnat05");
end Compiler;
package Builder is
for Default_Switches ("ada") use ("-g");
end Builder;
package Ide is
end Ide;
package Naming is
for Spec_Suffix ("c++") use ".h";
for Body_Suffix ("c++") use ".cc";
end Naming;
end Ralt_Pss;
GPS 似乎可以正确构建它,但 gnatbench 没有。另外,我注意到 gnatbench 使用 gnatmake 构建,而 GPS 使用 gprbuild 构建。除了不使用 gnatbench 之外,知道如何解决这个问题吗?