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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,92f1b9f519795959 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Message-ID: <436A4C1D.AF504D18@fakeaddress.nil> Date: Thu, 03 Nov 2005 18:42:53 +0100 From: Gautier Write-only X-Mailer: Mozilla 4.8 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Gnat 3.15p pragma issues References: <1131029395.700984.154230@f14g2000cwb.googlegroups.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 83.76.1.198 X-Original-NNTP-Posting-Host: 83.76.1.198 X-Trace: news.bluewin.ch 1131039781 83.76.1.198 (3 Nov 2005 18:43:01 +0100) Organization: Bluewin AG Complaints-To: abuse@bluewin.ch X-Original-NNTP-Posting-Host: 127.0.0.1 Path: g2news1.google.com!news4.google.com!news.glorb.com!solnet.ch!solnet.ch!news-zh.switch.ch!switch.ch!news.ip-plus.net!newsfeed.ip-plus.net!news.bluewin.ch!not-for-mail Xref: g2news1.google.com comp.lang.ada:6151 Date: 2005-11-03T18:42:53+01:00 List-Id: Erik Woulfe wrote: > I am attempting to move a large amount of code from an Apex compiler > system to the Gnat 3.15p compiler in order to gain more flexibility in > mutli-language code interaction (namely between C++ and Ada). One of > the problems that I encounter when making this move is that the Gnat > compiler does not recognize many of the pragma statements that Apex had > no problems with. However, I do not think that any/all of these are > Apex specific, such as pragma "Inline" and pragma "Not_Elaborated". Has > anyone had any experience with having common pragmas not being > recognized? Am I perhaps not referencing the correct libraries in my > gnatmake call? > > Thanks for any help. The standard pragma Inline is recognized by GNAT (since 3.07p or 3.10p at latest), but in order to make it active cross-unit, you need to compile with the -gnatn switch. HTH ______________________________________________________________ Gautier -- http://www.mysunrise.ch/users/gdm/index.htm Ada programming -- http://www.mysunrise.ch/users/gdm/gsoft.htm NB: For a direct answer, e-mail address on the Web site!