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,72a4f44afacb49df X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Question on setting up libraries Date: Sun, 16 Jul 2006 09:45:37 +0100 Organization: Pushface Message-ID: References: <1152998024.669864.21010@35g2000cwc.googlegroups.com> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1153039536 4229 62.49.19.209 (16 Jul 2006 08:45:36 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Sun, 16 Jul 2006 08:45:36 +0000 (UTC) Cancel-Lock: sha1:suKBrs/NXwaOI930ufHK1as1psA= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) Xref: g2news2.google.com comp.lang.ada:5719 Date: 2006-07-16T09:45:37+01:00 List-Id: randomm@mindless.com writes: > What is the proper way to manage all this? Presently I've got: > > libAdaCurses.a > *.o > *.ali files > in a directory in my ADA_OBJECTS_PATH > > and > *.adb > *.ads > in a directory in my ADA_INCLUDE_PATH I don't personally bother with precompiling libraries, I just put the source in the Ada source path (using GNAT Project, or -I if it's a quick hack) but I can see that some people don't like that. With that said, your scheme seems OK except I'd have expected _either_ the .o's _or_ the .a; looking at the installation here the Ada library has $ ls /opt/gnat-gpl-2005/lib/gcc/powerpc-apple-darwin7.4.1/3.4.5/adalib/*.[ao] /opt/gnat-gpl-2005/lib/gcc/powerpc-apple-darwin7.4.1/3.4.5/adalib/g-trasym.o /opt/gnat-gpl-2005/lib/gcc/powerpc-apple-darwin7.4.1/3.4.5/adalib/libgccprefix.a /opt/gnat-gpl-2005/lib/gcc/powerpc-apple-darwin7.4.1/3.4.5/adalib/libgmem.a /opt/gnat-gpl-2005/lib/gcc/powerpc-apple-darwin7.4.1/3.4.5/adalib/libgnarl.a /opt/gnat-gpl-2005/lib/gcc/powerpc-apple-darwin7.4.1/3.4.5/adalib/libgnat.a so there the choice isn't 100% for some deep reason; but the compiler will have special magic to include the necessary linker directives for itself. I'd expect the equivalent in your case to be in a GNAT Project file for AdaCurses (adacurses.gpr??); or perhaps in a pragam Linker_Options somewhere.