我正在尝试在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构建,并使用gprbuild构建GPS。除了不使用gnatbench之外,还知道如何解决这个问题吗?
答案 0 :(得分:1)
你需要gprbuild用于多语言项目。
我担心我不确定如何告诉Eclipse这样做;您可以尝试将gnatbench gnatmake
文件中的.xml
更改为gprbuild
。