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: border1.nntp.dca1.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: Permutation generator in ada library Date: Fri, 03 Oct 2014 07:36:04 +0300 Organization: Tidorum Ltd Message-ID: References: <5b7788b4-323f-42db-99e9-66c989992abb@googlegroups.com> <1d9e9cd4-3087-4357-9353-db4424a16e9b@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: individual.net Q7p6Fm9IkeNbmoUdcD5ZYwDztWk+nNvM0z9rYfovXOG3h+z5t5 Cancel-Lock: sha1:CtgE18EQPhnbp0nSnCjFBE2XNmQ= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: <1d9e9cd4-3087-4357-9353-db4424a16e9b@googlegroups.com> Xref: number.nntp.giganews.com comp.lang.ada:189321 Date: 2014-10-03T07:36:04+03:00 List-Id: On 14-10-03 07:01 , 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? No idea, it should work like that, at least if you are on MS Windows, where letter case does not matter in file names. (GNAT convention is to use lower-case file names, and there is seldom reason not to follow that convention.) The error you get is really strange; when GNAT compiles Print_Perms.adb, the "with" statement for package Generic_Perm should make GNAT find and process Generic_Perm.ads before it even tries to process Generic_Perm.adb. Did you put all three files in the same folder? Are they still there? -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .