* Main program can't find subprogram
@ 2023-09-17 17:27 richardthiebaud
2023-09-17 17:42 ` reinert
0 siblings, 1 reply; 3+ messages in thread
From: richardthiebaud @ 2023-09-17 17:27 UTC (permalink / raw)
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?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Main program can't find subprogram
2023-09-17 17:27 Main program can't find subprogram richardthiebaud
@ 2023-09-17 17:42 ` reinert
2023-09-17 18:16 ` richardthiebaud
0 siblings, 1 reply; 3+ messages in thread
From: reinert @ 2023-09-17 17:42 UTC (permalink / raw)
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", ...
?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Main program can't find subprogram
2023-09-17 17:42 ` reinert
@ 2023-09-17 18:16 ` richardthiebaud
0 siblings, 0 replies; 3+ messages in thread
From: richardthiebaud @ 2023-09-17 18:16 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-09-17 18:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-17 17:27 Main program can't find subprogram richardthiebaud
2023-09-17 17:42 ` reinert
2023-09-17 18:16 ` richardthiebaud
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox