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 X-Received: by 10.36.112.137 with SMTP id f131mr6921480itc.55.1516873843062; Thu, 25 Jan 2018 01:50:43 -0800 (PST) X-Received: by 10.157.114.140 with SMTP id t12mr835800otj.4.1516873842940; Thu, 25 Jan 2018 01:50:42 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.am4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!g80no457394itg.0!news-out.google.com!b73ni10434ita.0!nntp.google.com!w142no457454ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 25 Jan 2018 01:50:42 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=83.226.216.99; posting-account=89rtOwoAAACwfw13aLCkK5t6_il6M4EY NNTP-Posting-Host: 83.226.216.99 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Resolving Long Filenames for Packages From: alexander@xn--junivrs-e1a.com Injection-Date: Thu, 25 Jan 2018 09:50:43 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Body-CRC: 2580021740 X-Received-Bytes: 2817 Xref: reader02.eternal-september.org comp.lang.ada:50139 Date: 2018-01-25T01:50:42-08:00 List-Id: Actually, in using the `gprbuild` command, should I happen to use filenames= that does not mirror the package name, the compiler tells me that the "fil= e for the specific package" wasn't found: `main.adb:1:06: file "expressions-parser-automata-automaton_x.ads" not foun= d` This occurs, for instance, when the package Expressions.Parser.Automata.Aut= omaton_X is located in a file named automaton_x.ads (as well as a file for = the body: automaton_x.adb). This is a default behavior as according to "http://docs.adacore.com/live/wa= ve/gnat_ugn/html/gnat_ugn/gnat_ugn/the_gnat_compilation_model.html#file-nam= ing-rules". On that page, they also discuss how one might use non-default f= ile-names: "http://docs.adacore.com/live/wave/gnat_ugn/html/gnat_ugn/gnat_u= gn/the_gnat_compilation_model.html#using-other-file-names", but using two p= ragmas per non-default filename seems a slight bit excessive for something = that should be a simple task. Should anyone have any idea as to how this should be handled with GNAT's `g= prbuild` with a little more ease, that information would be highly apprecia= ted! Thank you, so far, Robert Eachus for recommendations on how the file naming= might be done. G. B. I do briefly remember not being required to use standard filenames du= ring compilation with the `gnatmake` command for GNAT, but in switching to = `gprbuild` and the `.gpr` project files to simplify the handling of project= s, I'm still to find a means of naming files whatsoever I may want.