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,ec31fb6eda682268 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!proxad.net!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!mutlu.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: STORAGE_ERROR in adainit Date: 18 Aug 2004 20:44:30 +0100 Organization: Pushface Sender: simon@smaug.pushface.org Message-ID: References: <7on6i05k3etrq0ol5aoaffkqasnenie5ff@4ax.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 1092858603 11243 62.49.19.209 (18 Aug 2004 19:50:03 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Wed, 18 Aug 2004 19:50:03 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: g2news1.google.com comp.lang.ada:2811 Date: 2004-08-18T20:44:30+01:00 List-Id: James Alan Farrell writes: > Other than that I don't understand why you would have different > results. Perhaps it is because my program_error C function is in a > library, not in a .o file? Don't know what different that would make, > though. I'll play around with the above program to see what I get. Symbols in a library.a are loaded if required (ie, if something before -l rary requires symbol foo, and module bar.o in library.a contains a definition of foo, then bar.o is "extracted" from library.a and linked in). If on the other hand you include bar.o on the ld command line, it's linked unconditionally. -- Simon Wright 100% Ada, no bugs.