comp.lang.ada
 help / color / mirror / Atom feed
* After redesigning my Poject I have the following Projectfile:
@ 2023-11-17  2:30 Petter
  2023-11-17  8:13 ` Nasser M. Abbasi
  2023-11-17  8:51 ` Egil H H
  0 siblings, 2 replies; 3+ messages in thread
From: Petter @ 2023-11-17  2:30 UTC (permalink / raw)


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?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: After redesigning my Poject I have the following Projectfile:
  2023-11-17  2:30 After redesigning my Poject I have the following Projectfile: Petter
@ 2023-11-17  8:13 ` Nasser M. Abbasi
  2023-11-17  8:51 ` Egil H H
  1 sibling, 0 replies; 3+ messages in thread
From: Nasser M. Abbasi @ 2023-11-17  8:13 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: After redesigning my Poject I have the following Projectfile:
  2023-11-17  2:30 After redesigning my Poject I have the following Projectfile: Petter
  2023-11-17  8:13 ` Nasser M. Abbasi
@ 2023-11-17  8:51 ` Egil H H
  1 sibling, 0 replies; 3+ messages in thread
From: Egil H H @ 2023-11-17  8:51 UTC (permalink / raw)


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)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-11-17  8:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-17  2:30 After redesigning my Poject I have the following Projectfile: Petter
2023-11-17  8:13 ` Nasser M. Abbasi
2023-11-17  8:51 ` Egil H H

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox