comp.lang.ada
 help / color / mirror / Atom feed
From: sjw <simon.j.wright@mac.com>
Subject: Re: GNAT GPL 2009: Shared library project cannot import static library project?
Date: Wed, 20 Jan 2010 12:12:45 -0800 (PST)
Date: 2010-01-20T12:12:45-08:00	[thread overview]
Message-ID: <f645b7aa-ef02-4518-8a7f-f7c38d13bc8f@q4g2000yqm.googlegroups.com> (raw)
In-Reply-To: df6cdfb2-f1dd-461f-b6db-07c0e08668e6@f12g2000yqn.googlegroups.com

On Jan 20, 1:15 pm, AndreiK <andrei.krivos...@gmail.com> wrote:
> On Jan 19, 8:02 pm, AndreiK <andrei.krivos...@gmail.com> 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  -PMyProject.gpr -d -XLegacy=Ada2005
> # 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.



  reply	other threads:[~2010-01-20 20:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-19 18:02 GNAT GPL 2009: Shared library project cannot import static library project? AndreiK
2010-01-20 13:15 ` AndreiK
2010-01-20 20:12   ` sjw [this message]
2010-01-21 19:01 ` Vadim Godunko
2010-01-23 22:07 ` Per Sandberg
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox