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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9b117a88e7a6a395 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-07 07:15:10 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!crtntx1-snh1.gtei.net!cambridge1-snf1.gtei.net!news.gtei.net!bos-service1.ext.raytheon.com!dfw-service2.ext.raytheon.com.POSTED!not-for-mail Message-ID: <3B6FF3E3.78DE085@raytheon.com> From: Mark Johnson Reply-To: mark_h_johnson@raytheon.com X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2smp i686) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: GNAT compiling problems on ME References: <3b6f96b7.4292612@news.iprimus.com.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Tue, 07 Aug 2001 08:57:55 -0500 NNTP-Posting-Host: 192.27.48.41 X-Complaints-To: news@ext.ray.com X-Trace: dfw-service2.ext.raytheon.com 997192675 192.27.48.41 (Tue, 07 Aug 2001 08:57:55 CDT) NNTP-Posting-Date: Tue, 07 Aug 2001 08:57:55 CDT Organization: Raytheon Company Xref: archiver1.google.com comp.lang.ada:11497 Date: 2001-08-07T08:57:55-05:00 List-Id: ? wrote: > Sorry everyone if this is not related to this newsgroup, but I'm > having trouble compiling ADA program using Gnat, other compiler is > fine. The problem is that it keeps saying file /c******.s not found, > I think the problem is when gnat1.exe is call to compile the .ada > file, it doesn't read in the proper filename, does anyone have any > specific idea about this?? > > Thanks, I need Gnat to do my assignment at uni that's why I have to > use it. How about doing the following... - take the current source file(s) you have into an empty directory - gnatchop * [to split the files if needed & convert to the gnat naming conventions] - gnatmake -g
This should address any "file naming" problems you are having. I did this kind of effort on a test suite which didn't match source file layout and naming conventions and it works well. If the spec's and bodies are in separate files, and you don't want to use the GNAT naming convention, read in the online documents about the configuration file (gnat.adc) and the Source_File_Name pragma. --Mark