• After redesigning my Poject I have the following Projectfile:

    From Petter@21:1/5 to All on Thu Nov 16 18:30:36 2023
    with "..\..\..\..\GNAT\2021\share\gpr\gnatcoll.gpr";
    with "../Utilities/utilities.gpr";

    project Ugroups is

    type Build_Kind is
    ("static", "relocatable", "static-pic");

    for Object_Dir use "obj";
    for Main use ("main.adb");
    GPR_BUILD : Build_Kind := external ("GPR_BUILD");

    package Compiler is
    for Switches ("ada") use ("-g");
    end Compiler;

    package Linker is
    for Switches ("ada") use ("-g");
    end Linker;

    package Ide is
    for Vcs_Kind use "git";
    end Ide;

    case GPR_BUILD is

    when "static" =>
    for Source_Dirs use ("src");

    when "relocatable" =>
    for Source_Dirs use ("src");

    when "static-pic" =>
    for Source_Dirs use ("src);
    end case;

    end Ugroups;

    When trying to build All Iget the following error:
    2023-11-17 02:59:24] Could not locate executable on path: .
    [2023-11-17 02:59:24] process exited with status -1, elapsed time: 00.41s

    Any Suggestions?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nasser M. Abbasi@21:1/5 to Petter on Fri Nov 17 02:13:20 2023
    On 11/16/2023 8:30 PM, Petter wrote:
    with "..\..\..\..\GNAT\2021\share\gpr\gnatcoll.gpr";

    Try to see if you escape the \ like this

    with "..\\..\\..\\..\\GNAT\\2021\\share\\gpr\\gnatcoll.gpr";

    or

    with "../../../../GNAT/2021/share/gpr/gnatcoll.gpr";

    and see if this fixes it

    --Nasser

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Egil H H@21:1/5 to Petter on Fri Nov 17 00:51:30 2023
    On Friday, November 17, 2023 at 3:30:38 AM UTC+1, Petter wrote:
    with "..\..\..\..\GNAT\2021\share\gpr\gnatcoll.gpr";

    Any Suggestions?

    `<GNAT root>/2021/share/gpr` should already be in the default project file search path.
    `with "gnatcoll";` should be enough (and will update to corresponding versions of gnatcoll when you update the compiler)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)