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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,eaee5e6761e9a59a X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!e25g2000prg.googlegroups.com!not-for-mail From: xorquewasp@googlemail.com Newsgroups: comp.lang.ada Subject: Re: GNAT subunit naming Date: Fri, 14 Mar 2008 13:34:30 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <7ebf5227-e8a1-401d-b52c-81579fe703d2@i12g2000prf.googlegroups.com> NNTP-Posting-Host: 81.86.41.187 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1205526871 30881 127.0.0.1 (14 Mar 2008 20:34:31 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 14 Mar 2008 20:34:31 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e25g2000prg.googlegroups.com; posting-host=81.86.41.187; posting-account=D9GNUgoAAAAmg7CCIh9FhKHNAJmHypsp User-Agent: G2/1.0 X-HTTP-UserAgent: gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:20398 Date: 2008-03-14T13:34:30-07:00 List-Id: Eric Hughes wrote: > See "package Naming" in the GNAT User's Guide. > > Eric Hello. I assume you mean section 2.4 "Using other file names". I also assume that I need to use the Subunit_File_Name parameter to the Source_File_Name pragma. Unfortunately it seem no matter how I specify the pragma with a Subunit_File_Name parameter, the compiler rejects it. What I would like to be able to do is to specify each subunit filename explicitly: pragma source_file_name (hello_device, subunit_file_name => "hello_f1.adb"); pragma source_file_name (hello_device, subunit_file_name => "hello_f2.adb"); pragma source_file_name (hello_device, subunit_file_name => "hello_f3.adb"); If I actually try to do this, however, the compiler simply gives me an "incorrect argument" error. What is the correct way to specify filenames for subunits? thanks.