From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.0 required=3.0 tests=BAYES_20,FREEMAIL_FROM, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a05:6214:440a:b0:656:4a8b:55f3 with SMTP id oj10-20020a056214440a00b006564a8b55f3mr72675qvb.7.1694972578389; Sun, 17 Sep 2023 10:42:58 -0700 (PDT) X-Received: by 2002:a05:6808:21aa:b0:3a3:e17e:d2ea with SMTP id be42-20020a05680821aa00b003a3e17ed2eamr3193388oib.8.1694972578080; Sun, 17 Sep 2023 10:42:58 -0700 (PDT) Path: eternal-september.org!news.eternal-september.org!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 17 Sep 2023 10:42:57 -0700 (PDT) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=84.209.88.37; posting-account=bPTmZAoAAAC_6HP9XLKB9aAAxBa6BuOR NNTP-Posting-Host: 84.209.88.37 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <19d89db4-8f09-4a19-9297-9cdf7eff5563n@googlegroups.com> Subject: Re: Main program can't find subprogram From: reinert Injection-Date: Sun, 17 Sep 2023 17:42:58 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:65667 List-Id: s=C3=B8ndag 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=20 > and randproj.adb crypt has a line "with randproj" but when I compile=20 > crypt either directly with gnat or with alr it does not find randproj.=20 >=20 > crypt.adb, randproj.ads, and randproj.adb are all in the same directory.= =20 >=20 > I have the feeling I'm missing something easy to do.=20 >=20 > How do I get crypt.adb to find randproj.ads? In the gpr file, have you: for Source_Dirs use ("src", ... ?