GNAT - filename/unitname question
- From: Manuel Collado <m.collado@xxxxxxxxxxxxxxxx>
- Date: Thu, 29 Sep 2005 12:52:02 +0200
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 .
- Follow-Ups:
- Re: GNAT - filename/unitname question
- From: Simon Wright
- Re: GNAT - filename/unitname question
- From: Georg Bauhaus
- Re: GNAT - filename/unitname question
- Prev by Date: Re: GNAT GPL 2005: Too clever by half?
- Next by Date: Re: GNAT GPL - Anonymous Access Type
- Previous by thread: Range constraints on subprogram parameters?
- Next by thread: Re: GNAT - filename/unitname question
- Index(es):