TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy


Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender: "Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
X-To: prabhath rao <[log in to unmask]>
Date: Sun, 2 Sep 2001 16:50:35 -0400
Reply-To: Stephen Leake <[log in to unmask]>
From: Stephen Leake <[log in to unmask]>
In-Reply-To: <[log in to unmask]>
Content-Type: text/plain; charset=us-ascii
MIME-Version: 1.0
Parts/Attachments: text/plain (23 lines)
prabhath rao <[log in to unmask]> writes:

> Hello,
> How to use gnatprep preprocessor to conditionally compile some part of the
> code in GNAT ada 95. I have tried with it, but i am not able to get rid of
> statements containing "#if" and  "#end if" after preprocessing. But compiler
> does not recognize #if and #end if and gives error messages.

If you post your actual code, and the commands you use to run it, I
can probably help. I use gnatprep regularly; it works as described in
the user's guide

> Or is there any method to make same GNAT ada 95 code to run on many
> platforms

This issue has been discussed many times on comp.lang.ada. In some
situations, a preprocessor is the best way to go. In others, differing
package bodies and/or subunits is better.

-- Stephe