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=-3.2 required=3.0 tests=BAYES_00,FREEMAIL_FROM, NICE_REPLY_A,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: richardthiebaud Newsgroups: comp.lang.ada Subject: Re: Main program can't find subprogram Date: Sun, 17 Sep 2023 14:16:58 -0400 Organization: A noiseless patient Spider Message-ID: References: <19d89db4-8f09-4a19-9297-9cdf7eff5563n@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sun, 17 Sep 2023 18:16:59 -0000 (UTC) Injection-Info: dont-email.me; posting-host="f5ea45da094e9e4e5324bf88ed876455"; logging-data="522343"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19BFHoH+9XRlWoo6iYRgcGjUtuHtKT9ShM=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Cancel-Lock: sha1:e8sPL5D7stNZ0lRAr8HJQkXEfjE= In-Reply-To: <19d89db4-8f09-4a19-9297-9cdf7eff5563n@googlegroups.com> Content-Language: en-US Xref: news.eternal-september.org comp.lang.ada:65668 List-Id: 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.