• Re: Main program can't find subprogram

    From reinert@21:1/5 to All on Sun Sep 17 10:42:57 2023
    søndag 17. september 2023 kl. 19:27:12 UTC+2 skrev richardthiebaud:
    I have a main program crypt.adb I have a seperate project randproj.ads
    and randproj.adb crypt has a line "with randproj" but when I compile
    crypt either directly with gnat or with alr it does not find randproj.

    crypt.adb, randproj.ads, and randproj.adb are all in the same directory.

    I have the feeling I'm missing something easy to do.

    How do I get crypt.adb to find randproj.ads?

    In the gpr file, have you: for Source_Dirs use ("src", ...
    ?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From richardthiebaud@21:1/5 to All on Sun Sep 17 13:27:09 2023
    I have a main program crypt.adb I have a seperate project randproj.ads
    and randproj.adb crypt has a line "with randproj" but when I compile
    crypt either directly with gnat or with alr it does not find randproj.

    crypt.adb, randproj.ads, and randproj.adb are all in the same directory.

    I have the feeling I'm missing something easy to do.

    How do I get crypt.adb to find randproj.ads?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From richardthiebaud@21:1/5 to reinert on Sun Sep 17 14:16:58 2023
    On 9/17/23 13:42, reinert wrote:
    søndag 17. september 2023 kl. 19:27:12 UTC+2 skrev richardthiebaud:
    I have a main program crypt.adb I have a seperate project randproj.ads
    and randproj.adb crypt has a line "with randproj" but when I compile
    crypt either directly with gnat or with alr it does not find randproj.

    crypt.adb, randproj.ads, and randproj.adb are all in the same directory.

    I have the feeling I'm missing something easy to do.

    How do I get crypt.adb to find randproj.ads?

    In the gpr file, have you: for Source_Dirs use ("src", ...
    ?

    Thanks, that did it.

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