comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen_leake@stephe-leake.org>
Subject: Re: Newbie question: How to use gnat make
Date: Sun, 20 Sep 2009 14:17:50 -0400
Date: 2009-09-20T14:17:50-04:00	[thread overview]
Message-ID: <uhbuxfpkh.fsf@stephe-leake.org> (raw)
In-Reply-To: b1f1461a-4899-437e-a20b-0a9dbf583c0d@n2g2000vba.googlegroups.com

Markus <markus.buehren@gmail.com> 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



      parent reply	other threads:[~2009-09-20 18:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-19 14:05 Newbie question: How to use gnat make Markus
2009-09-19 15:20 ` Ludovic Brenta
2009-09-19 15:54 ` John B. Matthews
2009-09-20  9:34   ` Markus
2009-09-20 18:17 ` Stephen Leake [this message]
replies disabled

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