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,c8c8b9fc03b0d98f,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Thu, 29 Sep 2005 12:52:02 +0200 From: Manuel Collado User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: es-ar, es, en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: GNAT - filename/unitname question Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 138.100.10.20 Message-ID: <433bc753@news.upm.es> X-Trace: 29 Sep 2005 12:52:03 +0100, 138.100.10.20 Path: g2news1.google.com!news2.google.com!proxad.net!134.158.69.22.MISMATCH!in2p3.fr!irazu.switch.ch!switch.ch!news.rediris.es!news.upm.es!138.100.10.20 Xref: g2news1.google.com comp.lang.ada:5268 Date: 2005-09-29T12:52:02+02:00 List-Id: Consider the following source file: filename.adb ------------ procedure unitname is begin ... end unitname; Compiling it gives a warning: filename.adb:1:11: warning: file name does not match unit name, should be "unitname.adb" And generates the files: filename.ali filename.o The question is: is there a gcc switch or GNAT pragma to force the compiler to use the unitname for the object files? To have: unitname.ali unitname.o instead of filename.* object files. I've read the GNAT documentation for gcc switches and pragmas, but found nothing useful. Thanks, -- To reply by e-mail, please remove the extra dot in the given address: m.collado -> mcollado