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-Thread: a07f3367d7,27b8da03f2246757 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.glorb.com!news2.glorb.com!wn13feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!53ab2750!not-for-mail Newsgroups: comp.lang.ada From: anon@anon.org (anon) Subject: Re: conditionnal compilation Reply-To: anon@anon.org (anon) References: <4259b442-6772-4527-989a-b20e1641b8d0@g20g2000vba.googlegroups.com> X-Newsreader: IBM NewsReader/2 2.0 Message-ID: Date: Thu, 14 May 2009 03:20:03 GMT NNTP-Posting-Host: 12.65.42.39 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1242271203 12.65.42.39 (Thu, 14 May 2009 03:20:03 GMT) NNTP-Posting-Date: Thu, 14 May 2009 03:20:03 GMT Organization: AT&T Worldnet Xref: g2news2.google.com comp.lang.ada:5833 Date: 2009-05-14T03:20:03+00:00 List-Id: 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 ?