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=0.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,b0dc2afa3347597f X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.8.229 with SMTP id u5mr775513pba.0.1316668755351; Wed, 21 Sep 2011 22:19:15 -0700 (PDT) Path: lh7ni2330pbb.0!nntp.google.com!news1.google.com!goblin1!goblin.stu.neva.ru!news.tornevall.net!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: AdaTutor Compilation with GNAT Date: Wed, 21 Sep 2011 22:19:13 -0700 Organization: TornevallNET - http://news.tornevall.net Message-ID: References: <9dvmg1Fu13U1@mid.individual.net> NNTP-Posting-Host: f4a94ccbf4638a4b79b0fa1c9a3ceef2 Mime-Version: 1.0 X-Trace: f6eef7896bd4edd085e1c27ff23924aa X-Complaints-To: abuse@tornevall.net User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.21) Gecko/20110831 Thunderbird/3.1.13 X-Complaints-Language: Spoken language is english or swedish - NOT ITALIAN, FRENCH, GERMAN OR ANY OTHER LANGUAGE! In-Reply-To: <9dvmg1Fu13U1@mid.individual.net> X-UserIDNumber: 1738 X-Validate-Post: http://news.tornevall.net/validate.php?trace=f6eef7896bd4edd085e1c27ff23924aa X-Complaints-Italiano: Non abbiamo padronanza della lingua italiana - se mandate una email scrivete solo in Inglese, grazie X-Posting-User: 0243687135df8c4b260dd4a9a93c79bd Xref: news1.google.com comp.lang.ada:18079 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: 2011-09-21T22:19:13-07:00 List-Id: On 09/21/2011 07:57 PM, George wrote: > > As I am new to Ada, it seems that GNAT expects the specification and the > body of a package to reside in different files. In the sources of > AdaTutor, specification and body reside in one .ADA file. This is correct: GNAT requires one compilation unit per file. Try using gnatchop to break the files into something that GNAT can handle. gnatchop ADA95.ADA should break it into custom_io.ads and custom_io.adb. gnatchop VANILLA.ADA should do the same. -- Jeff Carter "If you think you got a nasty taunting this time, you ain't heard nothing yet!" Monty Python and the Holy Grail 23