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,eed2d3a237734411 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 Path: g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!aioe.org!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Shared library project Date: Wed, 02 Jun 2010 13:46:42 +0200 Organization: Ada At Home Message-ID: References: <9dcc29a0-fb04-4a2a-9f3a-1678a509358c@o4g2000vbo.googlegroups.com> NNTP-Posting-Host: 7g+UIcN0UM67WCCZrTfU2A.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 User-Agent: Opera Mail/10.53 (Win32) Xref: g2news2.google.com comp.lang.ada:12198 Date: 2010-06-02T13:46:42+02:00 List-Id: Le Wed, 02 Jun 2010 13:05:38 +0200, AndreiK = a = =C3=A9crit: > Hello everybody! Hello you! > Can somebody what does this mean? > > The compiler outputs: > "shared library project "X" cannot import project "Y" that is not a > shared library project" As the message says, you are attempting, from a library project, to impo= rt = a project which is not a library project. CPP_AdFilters does not contain any =E2=80=9Cfor Library_Name use ...;=E2= =80=9D so it is = not a library project. As far as I know, a library project can only import library projects. Bo= th = must be library project. The page http://gcc.gnu.org/onlinedocs/gnat_ugn_unw/Library-Projects.html says =E2=80=9CStandard project files can import library project files.=E2=80=9D= Library project are to be imported from standard project, while standard= = project are not to be imported from library project. This is just like an application depends on a library, while a library i= s = not to depend on an application. Le Wed, 02 Jun 2010 13:09:24 +0200, AndreiK = a = =C3=A9crit: > The "X" project file is: > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D > with "../AdFilters/cpp_adfilters.gpr"; > > project Cpp_BI_SSLL_DLL is > > for Languages use ("C++"); > > for Object_Dir use project'Object_Dir & "../../obj"; > for Source_Dirs use project'Source_Dirs & "./src"; > > for Library_Dir use "lib"; > for Library_Name use "BISD"; > for Library_Kind use "dynamic"; > > package Naming is > for Specification_Suffix ("C++") use ".h"; > for Implementation_Suffix ("C++") use ".cpp"; > end Naming; > > end Cpp_BI_SSLL_DLL; > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > The "Y" project file is: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D > with "../SystemsCL/cpp_systemscl.gpr"; > > project Cpp_AdFilters is > > for Languages use ("C++"); > > for Object_Dir use project'Object_Dir & "../../obj"; > for Source_Dirs use project'Source_Dirs & "./src"; > > package Naming is > for Specification_Suffix ("C") use ".h"; > for Implementation_Suffix ("C") use ".c"; > for Specification_Suffix ("C++") use ".h"; > for Implementation_Suffix ("C++") use ".cpp"; > end Naming; > > end Cpp_AdFilters; > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > Thanks to everybody for some advise! -- = There is even better than a pragma Assert: a SPARK --# check. --# check C and WhoKnowWhat and YouKnowWho; --# assert Ada; -- i.e. forget about previous premises which leads to conclusion -- and start with new conclusion as premise.