From: Kenneth Wolcott <kennethwolcott@gmail.com>
Subject: Re: Rosetta Code task Proper divisors fails to compile
Date: Wed, 26 Jul 2023 11:30:12 -0700 (PDT) [thread overview]
Message-ID: <c9868ca1-84c8-41d9-be3c-bd58432e87b5n@googlegroups.com> (raw)
In-Reply-To: <u9qlts$1elnt$1@dont-email.me>
On Wednesday, July 26, 2023 at 1:36:15 AM UTC-7, Jeffrey R.Carter wrote:
> For some reason your gnatmake seems to be defaulting to -gnat05 mode. This code
> has an expression function, which is Ada 12, so try adding -gnat12 to the command.
>
> You also should not need to put "./" in front of the file name, though I don't
> see how that would make a difference.
Hi Jeff;
Thank you for your suggestion. Doesn't seem to have any effect.
(*SIGH*)
gnatmake -vh -gnat2012 proper_divisors.adb
GNATMAKE 13.1.0
Copyright (C) 1992-2023, Free Software Foundation, Inc.
"proper_divisors.ali" being checked ...
-> "proper_divisors.ali" missing.
gcc -c -gnat2012 proper_divisors.adb
generic_divisors.ads:11:08: error: (Ada 2005) cannot copy object of a limited type (RM-2005 6.5(5.5/2))
generic_divisors.ads:11:08: error: return by reference not permitted in Ada 2005
End of compilation
gnatmake: "proper_divisors.adb" compilation error
Ken
next prev parent reply other threads:[~2023-07-26 18:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-26 4:49 Rosetta Code task Proper divisors fails to compile Kenneth Wolcott
2023-07-26 8:36 ` Jeffrey R.Carter
2023-07-26 18:30 ` Kenneth Wolcott [this message]
2023-07-26 19:57 ` Jeffrey R.Carter
2023-07-26 22:26 ` Kenneth Wolcott
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox