0

here i've two projects (project1 and project2) on my machine (debian 12 if it help) which are into two different directories. the first, project1 is into All_My_Projects/App_Projects/Project1 and the second, project2 is into All_My_Projects/Web_Projects/Project2 I want to use certain package which are into my project1, into my project2 but I dont't know how to import the packages of my project1 in my project2. i tried to modify the gpr file of my project2 in adding with "All_My_Projects/App_Projects/Project1/Project1.gpr" but it no compile. I also tried to add this line for Library_Dir use "All_My_Projects/App_Projects/Project1"; I compile with gnatmake -p -P Project2.gpr. if someone an idea i'm take up.

1
  • 2
    The first way you mentioned should work, but I did notice that your path looks suspicious. Absolute paths start with either a / (linux) or drive like c:/ (windows). I would have expected a relative path to be something like ../../App_Projects/Project1.gpr based on the paths you showed. I think you have a path issue. I use this method all the time without fail
    – Jere
    Commented Mar 1 at 16:52

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.