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: a07f3367d7,608393cde8a744e3 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!q4g2000yqm.googlegroups.com!not-for-mail From: sjw Newsgroups: comp.lang.ada Subject: Re: GNAT GPL 2009: Shared library project cannot import static library project? Date: Wed, 20 Jan 2010 12:12:45 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <31ebe568-0834-4657-b8aa-5a69ac846dd9@a6g2000yqm.googlegroups.com> NNTP-Posting-Host: 82.30.110.254 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1264018366 11547 127.0.0.1 (20 Jan 2010 20:12:46 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 20 Jan 2010 20:12:46 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: q4g2000yqm.googlegroups.com; posting-host=82.30.110.254; posting-account=_RXWmAoAAADQS3ojtLFDmTNJCT0N2R4U User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:8804 Date: 2010-01-20T12:12:45-08:00 List-Id: On Jan 20, 1:15=A0pm, AndreiK wrote: > On Jan 19, 8:02=A0pm, AndreiK wrote: > > I have tryed to compile a shared library project using: "GPS 4.3.1 > > (20090114) hosted on pentium-mingw32msv & GNAT GPL 2009 (20090519)". > > > My shared library project imports a static library project and > > compiler (gnatmake) raise an error: "Shared library project cannot > > import static library project". Why??? Perhaps because a shared library needs to be compiled to be position- independent (-fPIC on some platforms) but a static library doesn't? > > Using the GNAT GPL 2008 with the same projects dont raise any errors. AdaCore continually improve error-detection. > > Thank evrebody for you help. > > > Andrei > > More exactly, I have used the next sequence of commands: > # gnatmake -c -gnatc =A0-PMyProject.gpr -d -XLegacy=3DAda2005 > # gnatdll -d ../libMyDLL.dll -e ./src/libMyDLL.def -I../obj -n ../obj/ > mydll.ali Have you tried gprbuild? would (probably, I don't know Windows) know how to run gnatdll.