* GNAT GPL 2009: Shared library project cannot import static library project?
@ 2010-01-19 18:02 AndreiK
2010-01-20 13:15 ` AndreiK
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: AndreiK @ 2010-01-19 18:02 UTC (permalink / raw)
Hello everybody!
Can some body help me?
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???
Using the GNAT GPL 2008 with the same projects dont raise any errors.
Thank evrebody for you help.
Andrei
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: GNAT GPL 2009: Shared library project cannot import static library project?
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
2010-01-21 19:01 ` Vadim Godunko
2010-01-23 22:07 ` Per Sandberg
2 siblings, 1 reply; 5+ messages in thread
From: AndreiK @ 2010-01-20 13:15 UTC (permalink / raw)
On Jan 19, 8:02 pm, AndreiK <andrei.krivos...@gmail.com> wrote:
> Hello everybody!
>
> Can some body help me?
> 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???
>
> Using the GNAT GPL 2008 with the same projects dont raise any errors.
>
> 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
Thank everybody for possible assistance!
Andrei
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: GNAT GPL 2009: Shared library project cannot import static library project?
2010-01-20 13:15 ` AndreiK
@ 2010-01-20 20:12 ` sjw
0 siblings, 0 replies; 5+ messages in thread
From: sjw @ 2010-01-20 20:12 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: GNAT GPL 2009: Shared library project cannot import static library project?
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-21 19:01 ` Vadim Godunko
2010-01-23 22:07 ` Per Sandberg
2 siblings, 0 replies; 5+ messages in thread
From: Vadim Godunko @ 2010-01-21 19:01 UTC (permalink / raw)
On Jan 19, 9:02 pm, AndreiK <andrei.krivos...@gmail.com> wrote:
>
> My shared library project imports a static library project and
> compiler (gnatmake) raise an error: "Shared library project cannot
> import static library project". Why???
>
> Using the GNAT GPL 2008 with the same projects dont raise any errors.
>
It is a error condition not detected by GNAT GPL 2008.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: GNAT GPL 2009: Shared library project cannot import static library project?
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-21 19:01 ` Vadim Godunko
@ 2010-01-23 22:07 ` Per Sandberg
2 siblings, 0 replies; 5+ messages in thread
From: Per Sandberg @ 2010-01-23 22:07 UTC (permalink / raw)
Having a dynamic library importing a static library may lead to very
"interesting" behavior of programs in a larger context, if there is any
"static" data in the static library and therefore this is treated as an
error by default with the GNAT tools.
This default behaviour could be supressed with switches to gprbuild if
you know what you are doing and have read the manuals in depth and
understand all the implications.
/Per
2010-01-19 19:02, AndreiK skrev:
> Hello everybody!
>
> Can some body help me?
> 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???
>
> Using the GNAT GPL 2008 with the same projects dont raise any errors.
>
> Thank evrebody for you help.
>
> Andrei
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-01-23 22:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2010-01-21 19:01 ` Vadim Godunko
2010-01-23 22:07 ` Per Sandberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox