comp.lang.ada
 help / color / mirror / Atom feed
From: anon@anon.org (anon)
Subject: Re: conditionnal compilation
Date: Thu, 14 May 2009 03:20:03 GMT
Date: 2009-05-14T03:20:03+00:00	[thread overview]
Message-ID: <D5MOl.226700$4m1.60689@bgtnsc05-news.ops.worldnet.att.net> (raw)
In-Reply-To: 4259b442-6772-4527-989a-b20e1641b8d0@g20g2000vba.googlegroups.com

An easy way is to use a common specification file and provide multi-body 
files.

An example:
    spec:
       Package_ABC.ads  -- contains common prototype of routines
    body"
       Package_ABC_Linux.adb       -- routines written for Linux
       Package_ABC_Windows.adb     -- routines written for Windows
       Package_ABC_Linux_x64.adb   -- routines written for Linux x86_64
       ...

Then use a batch or script file to check and verify target then rename the 
correct body file to Package_ABC.adb.  Compile Package_ABC.adb and use 
package in your program.



In <4259b442-6772-4527-989a-b20e1641b8d0@g20g2000vba.googlegroups.com>, guerrier.cachalot@gmail.com writes:
>Hi my friends
>Now that I know Ada has not built'in support for conditional
>compilation such a full-featured preprocessor, I would like know what
>should I use instead ?
>I precise I'm just a little beginner who doesn't want to compile
>anything .
>What really happend when I specify "--no-ssl" at some Ada-written
>program compilation ?




  parent reply	other threads:[~2009-05-14  3:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-13 20:08 conditionnal compilation guerrier.cachalot
2009-05-13 21:51 ` Jeffrey R. Carter
2009-05-14  3:06 ` Hibou57 (Yannick Duchêne)
2009-05-14  3:20 ` anon [this message]
2009-05-14  4:20 ` Per Sandberg
2009-05-14  7:17   ` guerrier.cachalot
replies disabled

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