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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,afdc9d59a2cfd4e8 X-Google-Attributes: gid103376,public Path: g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: GNAT Programming System Problems Date: Tue, 22 Jun 2004 08:06:18 +0200 Organization: AdaCL Message-ID: <3795986.61tQEeCIU8@linux1.krischik.com> References: Reply-To: krischik@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1087885863 06 19476 -aobXe1vIujFl1v 040622 06:31:03 X-Complaints-To: usenet-abuse@t-online.de X-ID: XdVmnsZAwedTc8K8ANAHJTuPnuFv-0UMPZ528IUAYXRNqXxZuvvfct User-Agent: KNode/0.7.7 Xref: g2news1.google.com comp.lang.ada:1761 Date: 2004-06-22T08:06:18+02:00 List-Id: C. Leif wrote: > After much time and effort, I have been able to compile a program with the > GNAT Programming System. Initially, when I created a project, the files > would neither compile nor even check syntax. I received a message, > > "pretty_printer" is not an allowed package name > warning: undefined attribute "default_switches" > > This problem was eliminated by commenting out information on the pretty > printer in the .gpr file. The pretty printer is only available to newer GNATs. Personally I think this is a design mistake. Unknown packages should have been a warning not an error. > For each of my Ada Utilities, I created its own project. Since in each > utility there are packages (mostly bodies) that depend on packages in > another utility, there are circular dependencies amongst the .gpr files. > Fortunately, these do not exist in the specifications. After extensive > searching, I found mention of a "limited with construct". The addition of > limited before with in the project file did not work. In which case you might consider a library package. Just create a package with the shared packages and add: Version := "1.0.0"; for Library_Name use "adacl"; case Style is when "Release" => for Library_Kind use "dynamic"; for Library_Version use "libmylib.so." & Version; when "Debug" => for Library_Kind use "static"; for Library_Version use "libmylib.a." & Version; end case; and remove the for Main ... for Executable ... statements. > Obviously, I would greatly appreciate help. I also should state that I > have > described one of the reasons for the Ada's lack of popularity. Microsoft > and other software manufacturers have demonstrated that for the customer > the ease of use of the environment can outweigh the comparative lack of > quality > of the compiler. I was hopping that the development of A# would result in > a commercial quality compiler that could be hosted, as many other > languages > have been, under Microsoft Visual Studio. The traditional Ada compiler > vendors might extend their J code generators to produce the ECMA > intermediate language employed by Microsoft. Remember: you are using the free academic version! GNAT Pro comes with pretty printer, the newest GPS, and support. With Regards Martin -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com