0

我正在努力使用将构建和执行的自定义项目文件,但我收到了这组警告(或错误,我不确定)。Clean All之后,然后单击Build -> Project -> Build All以显示Build All对话框:

[2015-01-22 23:30:39] Could not determine the target to build.
[2015-01-22 23:30:39] Could not expand argument in command line: %T
[2015-01-22 23:30:39] Build command not launched.

在我单击 Execute 开始构建之前,这些会显示在 Messages 窗口中(以红色文本显示)。当我单击执行时,构建成功完成并且程序运行。

Build All 对话框在选项对话框中有这个:

%builder %eL -P%PP %X -k -s -d

这是什么意思,为什么要这样做?

如果有帮助,这里是项目文件:

  project LogBuffer01 is

  for Source_Dirs use ("src", "src\utilities");
  for Object_Dir use "obj";
  for Exec_Dir use "exe";
  for Main use ("abt_log_buffer_main_b.ada");

  package Naming is
     for Spec_Suffix ("ada") use "_s.ada";
     for Body_Suffix ("ada") use "_b.ada";
     for Spec ("abt_mirror_specs") use "abt_mirror_specs_s.ada";
     for Spec ("abt_log_buffer_types") use "abt_log_buffer_types_s.ada";
     for Spec ("abt_log_buffer") use "abt_log_buffer_s.ada";
     for Body ("abt_log_buffer") use "abt_log_buffer_b.ada";
     for Spec ("abt_log_buffer_rom_acess") use "abt_log_buffer_rom_access_s.ada";
     for Body ("abt_log_buffer_rom_acess") use "abt_log_buffer_rom_access_b.ada";
     for Spec ("screen_output") use "screen_output_s.ada";
     for Body ("screen_output") use "screen_output_b.ada";
  end Naming;

  package Pretty_Printer is
     for Default_Switches ("ada") use ("-i5");
  end Pretty_Printer;

  package Compiler is
        for Default_Switches ("ada") use ("-gnat83");
  end Compiler;

  package Builder is
     for Default_Switches ("ada") use ("");
  end Builder;

  package Check is
     for Default_Switches ("ada") use ("-d");
  end Check;

  end LogBuffer01;
4

1 回答 1

0

builder 的含义在这里定义。我翻译你的命令字符串没有意义,我只想说 %builder 翻译成 gnatmake 因为你只编译 Ada。这里描述了 gnatmake 的开关 。

顺便说一句,我有这个包生成器:

for Default_Switches ("ada") use ("-g", "-C", "-s");

但在另一个正常工作的项目中,我有

for Default_Switches ("ada") use ();
于 2015-02-19T21:20:26.047 回答