From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.unit0.net!cyclone03.ams2.highwinds-media.com!news.highwinds-media.com!voer-me.highwinds-media.com!post02.fr7!fx20.fr7.POSTED!not-for-mail From: Brian Drummond Subject: Re: Permutation generator in ada library Newsgroups: comp.lang.ada References: <5b7788b4-323f-42db-99e9-66c989992abb@googlegroups.com> <1d9e9cd4-3087-4357-9353-db4424a16e9b@googlegroups.com> User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-ID: NNTP-Posting-Host: 62.49.20.82 X-Complaints-To: abuse@demon.net X-Trace: 1412334034 62.49.20.82 (Fri, 03 Oct 2014 11:00:34 UTC) NNTP-Posting-Date: Fri, 03 Oct 2014 11:00:34 UTC Date: Fri, 03 Oct 2014 11:00:34 GMT X-Received-Body-CRC: 1580556848 X-Received-Bytes: 1602 Xref: news.eternal-september.org comp.lang.ada:22028 Date: 2014-10-03T11:00:34+00:00 List-Id: On Thu, 02 Oct 2014 21:01:57 -0700, Stribor40 wrote: > in the post above there is package that generates these permutations.... > > I have saved 3 files....in same order as the files are in posting > Generic_Perm.ads Generic_Perm.adb Print_Perms.adb > > when i try to compile....gnatmake Print_Perms.adb I get error... > > Generic_Perm.adb:1:14: file "generic_perm.ads" not found gnatmake: > "Generic_Perm.adb" compilation error > > What am i doing wrong? Gnat for some reason lower-cases the filenames when generating them from the package names. On Linux, the filenames Generic_Perm.ads and generic_perm.ads actually refer to different files, and the second of these is apparently missing. Rename the files and all will be well (or at least better!) - Brian