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: buffer2.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!news-1.dfn.de!news.dfn.de!news.informatik.hu-berlin.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: Pascal to ADA Converter Date: Wed, 29 Jul 2015 19:03:46 +0300 Organization: Tidorum Ltd Message-ID: References: <43911d5c-44ff-4be0-883e-a35447acdca3@googlegroups.com> <87bnev8ix7.fsf@adaheads.sparre-andersen.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net Hv8ndeiqGWf6YDrFe7aR2AsUoM0PPUfTCSsaA8iyqY9sL7XSUC Cancel-Lock: sha1:vyJlAA3gdfcchvk3qLHZ7NMsPiQ= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 In-Reply-To: Xref: number.nntp.giganews.com comp.lang.ada:194437 Date: 2015-07-29T19:03:46+03:00 List-Id: On 15-07-29 17:59 , Fernando Arroyo wrote: > - build P2Ada ("gnatmake p2ada").and then: > > $ gnatmake p2ada > gcc -c p2ada.adb > pascal_io.ads:91:01: end of file expected, file can have only one compilation unit > gnatmake: "p2ada.adb" compilation error > > > I don't understand what happends, it looks that the steps of the README > does not correspond to this version. > > Any idea? Well, there seems to be something that GNAT does not like in the file pascal_io.ads, at line 91. That error message usually means that the source-code file needs to be divided into separate files, one for each compilation unit (package declaration, package body, ...) in the original file. Some other Ada compilers accept source-code files that contain several compilation units, but GNAT does not. > The status of my files are the following: > https://www.dropbox.com/s/9h25jpumt1pzayp/p2ada-aug-2010-src.zip?dl=0 I did not find any file named pascal_io.ads there. Do you have a file by that name? -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .