comp.lang.ada
 help / color / mirror / Atom feed
From: Manuel Collado <m.collado@lml.ls.fi.upm.es>
Subject: GNAT - filename/unitname question
Date: Thu, 29 Sep 2005 12:52:02 +0200
Date: 2005-09-29T12:52:02+02:00	[thread overview]
Message-ID: <433bc753@news.upm.es> (raw)

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



             reply	other threads:[~2005-09-29 10:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-29 10:52 Manuel Collado [this message]
2005-09-29 12:49 ` GNAT - filename/unitname question Georg Bauhaus
2005-09-29 19:09 ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox