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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ad69f6f503ef8029 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news4.google.com!newshub.sdsu.edu!newsfeed.news2me.com!newsfeed.icl.net!skynet.be!newspost001!tjb!not-for-mail Date: Fri, 20 Jan 2006 09:46:29 +0100 From: Adrien Plisson Reply-To: aplisson-news2@stochastique.net User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: GNAT Error - Subunit not found References: <1137715719.821015.209390@o13g2000cwo.googlegroups.com> <43D05F8A.C4A17EE@fakeaddress.nil> In-Reply-To: <43D05F8A.C4A17EE@fakeaddress.nil> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <43d0a377$0$3795$ba620e4c@news.skynet.be> Organization: -= Belgacom Usenet Service =- NNTP-Posting-Host: f912508d.news.skynet.be X-Trace: 1137746808 news.skynet.be 3795 81.246.238.217:3804 X-Complaints-To: usenet-abuse@skynet.be Xref: g2news1.google.com comp.lang.ada:2559 Date: 2006-01-20T09:46:29+01:00 List-Id: Gautier Write-only wrote: > GNAT awaits by default a certain file name for each Ada (sub)unit name. > If you read the error message, it even says which file name it expects: > temp.adb:3:02: warning: subunit "temp.temp1" in file "temp-temp1.adb" not found you may auto-generate a file with the expected filename using gnatchop. it is easier than remembering the naming convention. fichier temp2.adb: -%<--------------------- separate( temp ) procedure temp1 is begin null; end temp1; ->%--------------------- then: D:\>gnatchop -p -w temp2.adb splitting temp2.adb into: temp-temp1.adb -- rien