comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Question on setting up libraries
Date: Sun, 16 Jul 2006 09:45:37 +0100
Date: 2006-07-16T09:45:37+01:00	[thread overview]
Message-ID: <m21wsmhr9q.fsf@grendel.local> (raw)
In-Reply-To: 1152998024.669864.21010@35g2000cwc.googlegroups.com

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.



  parent reply	other threads:[~2006-07-16  8:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1152998024.669864.21010@35g2000cwc.googlegroups.com>
2006-07-15 21:24 ` Question on setting up libraries Ludovic Brenta
2006-07-16  0:26 ` Jeffrey R. Carter
2006-07-16  8:45 ` Simon Wright [this message]
2006-07-16 12:17   ` Ludovic Brenta
2006-07-16 11:49 ` Martin Krischik
     [not found]   ` <1153052044.114830.184030@h48g2000cwc.googlegroups.com>
2006-07-16 12:30     ` Ludovic Brenta
     [not found]       ` <1153055835.051381.88680@m73g2000cwd.googlegroups.com>
2006-07-16 13:32         ` Ludovic Brenta
2006-07-16 20:06       ` Simon Wright
replies disabled

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