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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,be1dcb512cfd9c2b X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!peer1.news.newnet.co.uk!194.159.246.34.MISMATCH!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: Linking Ada code stored in a dylib Date: Sat, 12 Jan 2008 10:56:19 +0000 Organization: Pushface Message-ID: References: NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1200135380 14342 62.49.19.209 (12 Jan 2008 10:56:19 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Sat, 12 Jan 2008 10:56:19 +0000 (UTC) Cancel-Lock: sha1:SK5AfBG2aGpLFY5FQGXzYDN8j2c= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (darwin) Xref: g2news1.google.com comp.lang.ada:19343 Date: 2008-01-12T10:56:19+00:00 List-Id: Jerry writes: > On my end, I eventually noticed that whenever I used the bindings as > (now) downloaded from the PLplot project site, I would get new .o > and .ali files, a re-compilation of the bindings, in the directory > where my main program was. I assumed that it was something that I > had done wrong since I'm not a wizard at compiler and linker > switches and didn't worry much about it since things worked just > fine. However, when I finally bothered to tell the linker to link > this .dylib, I still saw the re-compiled .o and .ali files > appearing. Personally I can't see the point of dylibs for Ada applications, but that's just me! Pretty sure that to avoid your problem, the compiler needs to see the previously-compiled .ali files, and they need to be read-only and compiled by the same compiler (well, compatible I suppose but different releases haven't been yet to my knowledge). --S