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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ad69f6f503ef8029 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Message-ID: <43D05F8A.C4A17EE@fakeaddress.nil> Date: Fri, 20 Jan 2006 04:56:58 +0100 From: Gautier Write-only X-Mailer: Mozilla 4.8 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: GNAT Error - Subunit not found References: <1137715719.821015.209390@o13g2000cwo.googlegroups.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 83.76.12.183 X-Original-NNTP-Posting-Host: 83.76.12.183 X-Trace: news.bluewin.ch 1137729430 83.76.12.183 (20 Jan 2006 04:57:10 +0100) Organization: Bluewin AG Complaints-To: abuse@bluewin.ch X-Original-NNTP-Posting-Host: 127.0.0.1 Path: g2news1.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!solnet.ch!solnet.ch!news-zh.switch.ch!switch.ch!news.ip-plus.net!newsfeed.ip-plus.net!news.bluewin.ch!not-for-mail Xref: g2news1.google.com comp.lang.ada:2555 Date: 2006-01-20T04:56:58+01:00 List-Id: deepblue2@gmail.com: > Hello, I am getting this compiler error for the Ada code. I am trying > to do this: > > package body temp is > > procedure temp1 is separate; > > than in a file called temp2.adb > > separate(temp) > procedure temp1 is > begin > end temp > > I am getting compiler error..does any know how would I compile this? 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 HTH ______________________________________________________________ Gautier -- http://www.mysunrise.ch/users/gdm/index.htm Ada programming -- http://www.mysunrise.ch/users/gdm/gsoft.htm NB: For a direct answer, e-mail address on the Web site!