comp.lang.ada
 help / color / mirror / Atom feed
From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Re: Shared library project
Date: Wed, 02 Jun 2010 13:46:42 +0200
Date: 2010-06-02T13:46:42+02:00	[thread overview]
Message-ID: <op.vdn8b4nbule2fv@garhos> (raw)
In-Reply-To: c4de33a1-b18e-404c-8e39-e8b862c1d1d5@o4g2000vbo.googlegroups.com

Le Wed, 02 Jun 2010 13:05:38 +0200, AndreiK <andrei.krivoshei@gmail.com> a  
écrit:

> 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 import  
a project which is not a library project.

CPP_AdFilters does not contain any “for Library_Name use ...;” so it is  
not a library project.

As far as I know, a library project can only import library projects. Both  
must be library project.

The page
http://gcc.gnu.org/onlinedocs/gnat_ugn_unw/Library-Projects.html
says
“Standard project files can import library project files.”

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 is  
not to depend on an application.

Le Wed, 02 Jun 2010 13:09:24 +0200, AndreiK <andrei.krivoshei@gmail.com> a  
écrit:

> The "X" project file is:
>
> ===============================
> 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;
> ===================================
>
> The "Y" project file is:
> =================================
> 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;
> ===================================
>
> 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.



  reply	other threads:[~2010-06-02 11:46 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-02 11:05 Shared library project AndreiK
2010-06-02 11:09 ` AndreiK
2010-06-02 11:46   ` Yannick Duchêne (Hibou57) [this message]
2010-06-09 11:33     ` AndreiK
2010-06-09 14:24       ` Yannick Duchêne (Hibou57)
2010-06-10  5:10         ` AdaMagica
2010-06-10 12:50         ` Andrei Krivoshei
2010-06-10 13:04           ` Yannick Duchêne (Hibou57)
2010-06-10 19:53             ` Simon Wright
2010-06-10 13:48           ` Dmitry A. Kazakov
2010-06-02 12:02   ` sjw
replies disabled

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