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!border2.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.scarlet.biz!news.scarlet.biz.POSTED!not-for-mail NNTP-Posting-Date: Sun, 16 Jul 2006 07:16:47 -0500 From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Question on setting up libraries References: <1152998024.669864.21010@35g2000cwc.googlegroups.com> Date: Sun, 16 Jul 2006 14:17:09 +0200 Message-ID: <87d5c53fsq.fsf@ludovic-brenta.org> User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:BApN3EV152By7YXuB4e7JIcZVz8= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 62.235.236.158 X-Trace: sv3-8e0B1vMc/k++rGwDUY5bRabipSGHJ7EJeVrBfqjggaRXYvErfEW5XyEgj0P0zgQGZNADL9tBEUgu9YP!SmzD+8a/W92YAvl+vsnVlZFsV4pKPPPCE+LeVQHvZoLyROxCjSQS54Tyg6zhSTGg+OcYdukq8R4= X-Complaints-To: abuse@scarlet.be X-DMCA-Complaints-To: abuse@scarlet.biz X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news2.google.com comp.lang.ada:5726 Date: 2006-07-16T14:17:09+02:00 List-Id: Simon Wright writes: > $ 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. g-trasym.o contains GNAT.Traceback.Symbolic_Tracebacks. It relies on an external program (addr2line) or library (libaddr2line.a) to translate addresses to line numbers in the source code. If you bind with gnatbind -E and use symbolic tracebacks, you need this object file and the program or library. If you don't need symbolic tracebacks, then libgnat.a and libgarl.a are sufficient. Some parts of libgnat.a need libgccprefix.a, too (see gnatvsn.ads, gnatvsn.adb). On Debian, both g-trasym.o and libgccprefix.a are packaged into libgnat.a for simplicity. addr2line is always available, because it is part of binutils, which are necesary anyway to produce any object file (binutils contains as and ld). > 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. Yes. -- Ludovic Brenta.