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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e8164763d1f73294 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!t46g2000cwa.googlegroups.com!not-for-mail From: "markww" Newsgroups: comp.lang.ada Subject: Re: packages Date: 20 Dec 2006 14:03:37 -0800 Organization: http://groups.google.com Message-ID: <1166652217.037740.272730@t46g2000cwa.googlegroups.com> References: <1166649100.107626.64210@48g2000cwx.googlegroups.com> NNTP-Posting-Host: 67.154.89.221 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1166652223 4077 127.0.0.1 (20 Dec 2006 22:03:43 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 20 Dec 2006 22:03:43 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: t46g2000cwa.googlegroups.com; posting-host=67.154.89.221; posting-account=cNKOMg0AAADT2ug8oGSYYXo8bsDvrHzw Xref: g2news2.google.com comp.lang.ada:7963 Date: 2006-12-20T14:03:37-08:00 List-Id: Bj=F6rn Lundin wrote: > 20 dec 2006 kl. 22.11 skrev markww: > > > Hi, > > > > I wrote a package to be included with my main program, my directory > > looks like: > > > > generic_list.ads // package def > > generic_list.adb // package body > > AdaGenericLinkedList.adb // my main program > > > > Now I need all three to be present in the same directory to compile > > the > > main adb file with gnat make. > > gnatmake compiles AND builds for you > > try moving generic_list.adb and then _compile_ AdaGenericLinked_List.adb > > gcc -c AdaGenericLinked_List.adb > > You should get an object file of that. But to link, you need the > generic_list.adb too > > > > /Bj=F6rn > > Bj=F6rn Lundin > b dot f dot lundin at gmail dot com > > > > > --Apple-Mail-1--634177642 > Content-Type: text/html; charset=3DISO-8859-1 > Content-Transfer-Encoding: quoted-printable > X-Google-AttachSize: 3765 > >
20 dec 2006 kl. 22.11 skr= ev markww:

Hi,

<= DIV style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin= -left: 0px; ">I wrote a package to be included with my main program, my dir= ectory
looks like:
generic_list.ads // package= def
= generic_list.adb // package b= ody
A= daGenericLinkedList.adb // my main program

Now I need all three to be present in the sa= me directory to compile the
main adb file with gnat mak= e=2E

gnatmake compiles AND builds for you

try moving generic_list.adb and then _compile_ = AdaGenericLinked_List.adb

<= /DIV>
gcc -c AdaGenericLinked_List.adb

You should get an object file of that. But to li= nk, you need the generic_list.adb too


/Bj=F6rn

Bj=F6rn Lundin
b dot f dot lundin at gmail dot com



> --Apple-Mail-1--634177642-- Ohh I see so you can compile with only the package *specification* but in order to finalize by linking then you do need the pacakage body? Thanks