GNAT Pretty Printer?

From: Brian Catlin (BrianC_at_sannas.org.bad)
Date: 02/13/04


Date: Fri, 13 Feb 2004 19:43:32 GMT

I just downloaded GNAT 3.15P and GPS 1.4. I started GPS, and used the wizard to
create a simple project. When I tried to compile the project, I got the
following error:
-------------------------------------------------
gnatmake -d -Pd:\temp\adatest\test.gpr d:\temp\adatest\Test.adb
test.gpr:7:12: "pretty_printer" is not an allowed package name
test.gpr:8:11: warning: undefined attribute "default_switches"
gnatmake: "d:\temp\adatest\test.gpr" processing failed

process exited with status 4

-------------------------------------------------

Where do I get the GNAT Pretty Printer?

Here is the project file:
-------------------------------------------------
project Test is

   for Languages use ("Ada");
   for Source_Dirs use (".");
   for Object_Dir use ".";

   package Pretty_Printer is
      for Default_Switches ("ada") use ("");
   end Pretty_Printer;

   package Linker is
      for Default_Switches ("ada") use ("-g");
   end Linker;

   package Binder is
      for Default_Switches ("ada") use ("-static");
   end Binder;

   package Compiler is
      for Default_Switches ("ada") use ("-g");
      for Default_Switches ("c") use ("");
      for Default_Switches ("c++") use ("");
   end Compiler;

   package Builder is
      for Default_Switches ("ada") use ("-g", "-gnatQ");
   end Builder;

   for Main use ("Test.adb");

end Test;

-------------------------------------------------

 -Brian



Relevant Pages

  • simple programs -> one file with gps 2008 (gpl)?
    ... Programms might be presented in a single file." ... package x is -- spec and body of Objects ... I typed a program with similar structure into GPS 2008 and while trying to compile the GPS compiler aborted with the following message ... So my question is how to convince the underlying compiler of GPS that my program is a simple program. ...
    (comp.lang.ada)
  • Re: Freeware download corrupt (?)
    ... > a list of all functions in a package that fall in that category. ... > conflict with a function of that name in a future version of the CRTL. ... > But the compiler doesn't do that, so for now we're on our own. ... I create a package with a routine in it called "highwater". ...
    (comp.os.vms)
  • Re: PL/I, COBOL, Advantages, Equivalence, et al
    ... SPARK will allow a variable to have a value that conforms ... might be that a package somewhere will look like this ... An Ada compiler may issue a warning; ... LC> Ada/SPARK support a boolean type? ...
    (comp.lang.pl1)
  • RE: Visual studio 2003 .NET versus its own Command Prompt
    ... > package in the lab. ... > command line compiler which cames with it. ... library, which is a .lib file, for it to know where in the DLL the functions ...
    (microsoft.public.vc.language)
  • Re: Frage zu Packages und our
    ... Der Compiler selbst schaut jedoch bei einem unqualifizierten ... Laufzeit tatsächlich auf die globale (Package) Variable zugegriffen. ... von "my" ident sind - denn ein innerhalb eines Scopes deklariertes ...
    (de.comp.lang.perl.misc)