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 05:03:21 -0800 Organization: http://groups.google.com Message-ID: <1131109401.159287.109900@g47g2000cwa.googlegroups.com> References: <1131107328.981560.222350@g43g2000cwa.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 1131109406 14821 127.0.0.1 (4 Nov 2005 13:03:26 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 4 Nov 2005 13:03:26 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1),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:6183 Date: 2005-11-04T05:03:21-08:00 List-Id: Niklas Holsti wrote: > I'm working on an Ada program that has different versions, as in > your example. I put the different versions of the package bodies > (and specifications, too, for some packages) in different > source-code directories, as you do. To build a specific version of > the program, I list the source-code directories for the desired > version in ADA_INCLUDE_PATH (and also in ADA_OBJECTS_PATH, but I > think this is unnecessary for me) and then run "gnatmake" in a > directory dedicated to this version. The .ali and .o files and the > executable go in this version-specific directory. I don't use > symlinks, just ADA_INCLUDE_PATH. The problem i've found is, if the .adb file is in the same directory as the .ali, .o and the shared lib, the source code will be linked directly into the final executable. The executable still requires the shared lib, but it doesn't actually use it. How do you get around this? Do you dump the ali and shared lib to a different directory? Thanks, Luke.