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,6c7dea22b75ba442 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!attbi_s21.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: ada compiler? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <8n6Zi.193391$Fc.57033@attbi_s21> NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s21 1194652228 12.201.97.213 (Fri, 09 Nov 2007 23:50:28 GMT) NNTP-Posting-Date: Fri, 09 Nov 2007 23:50:28 GMT Organization: AT&T ASP.att.net Date: Fri, 09 Nov 2007 23:50:28 GMT Xref: g2news1.google.com comp.lang.ada:18241 Date: 2007-11-09T23:50:28+00:00 List-Id: Bill Cunningham wrote: > I have just began looking at the ada language and some tutorials but I > have no idea how to compile ada programs. I am using gcc with C,C++, and Ada > support. Do Ada programs have to end in .ads ? How do I work the compiler? The default for GNAT (which is what you have) is that package specifications end in .ads, and everything else ends in .adb. You can use other extensions if you like, but to start off with it's probably easiest to abide by this convention. The easiest way to use the compiler is to use gnatmake: gnatmake -gnato -fstack-check [-O2] This will compile .adb and everything needed to produce an executable for it. Note that "-gnato -fstack-check" is needed for GNAT to be an Ada compiler. -- Jeff Carter "Spam! Spam! Spam! Spam! Spam! Spam! Spam! Spam!" Monty Python's Flying Circus 53