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: a07f3367d7,39f177ee703875f6 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Newbie question: How to use gnat make References: From: Stephen Leake Date: Sun, 20 Sep 2009 14:17:50 -0400 Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (windows-nt) Cancel-Lock: sha1:0ci6KVWsp2oBBbbEA7jxMyDUlms= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: 3b8f04ab6714fe197caa707040 Xref: g2news2.google.com comp.lang.ada:8406 Date: 2009-09-20T14:17:50-04:00 List-Id: Markus writes: > I am new to Ada, learning with the book "Programming in Ada 2005" from > John Barnes. I want to build a program using the GNAT GPL compiler on > the command line. If my program resides in a single file I just call > > gnat make myfun.adb, > > but how do I call the compiler if I want to use ("with") packages > defined in another file? I know the include, compile and link > procedure from C programs, is it similar in Ada? What about the file > extensions .ada/.adb/.ads? There is a short tutorial on compiling Ada code in multiple files as part of the Emacs Ada mode tutorial; see http://www.stephe-leake.org/emacs/ada-mode/emacs-ada-mode.html -- -- Stephe