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,4cabfb8e49247533 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!g47g2000cwa.googlegroups.com!not-for-mail From: "Lucretia" Newsgroups: comp.lang.ada Subject: Re: Multiple shared libraries with a single spec Date: 4 Nov 2005 07:43:33 -0800 Organization: http://groups.google.com Message-ID: <1131119013.915855.25010@g47g2000cwa.googlegroups.com> References: <1131107328.981560.222350@g43g2000cwa.googlegroups.com> <1131109401.159287.109900@g47g2000cwa.googlegroups.com> NNTP-Posting-Host: 194.74.199.42 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1131119019 28830 127.0.0.1 (4 Nov 2005 15:43:39 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 4 Nov 2005 15:43:39 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705),gzip(gfe),gzip(gfe) X-HTTP-Via: 1.0 Symantec_Web_Security (3.0.1.74), 1.0 C2100-0050414028 (NetCache NetApp/5.5R5) Complaints-To: groups-abuse@google.com Injection-Info: g47g2000cwa.googlegroups.com; posting-host=194.74.199.42; posting-account=G-J9fgwAAADgpzBiEyy5tO4f8MX5fbpw Xref: g2news1.google.com comp.lang.ada:6194 Date: 2005-11-04T07:43:33-08:00 List-Id: Niklas Holsti wrote: > Ah - when you say "shared lib", do you mean a *dynamically* linked > library? I thought you just meant a library that is used by > several programs or different versions of a program, but has > different implementations for different environments. Nope a shared library, as in dynamically linked. Hence the use of dlopen and dlsym in the OP ;-D > Sorry for my misunderstanding. I don't have any experience with > making dynamically linked libraries. No problems. It took a while to get sorted, but it can be done, although GNAT really makes it difficult. > In my case, the choice of versions influences many parts of the > program, not just the libraries but also their client packages, so > linking the libraries dynamically would not make sense. > > > Do you dump the ali and shared lib to a different directory? > > It may not be relevant to your problem, as I misunderstood your > aims, but for this program I never have the .adb in the same > directory as the .ali and .o. Ok. I currently build in the directory with the source, I should change this so that the objects and ali's go somewhere else. Luke.