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=3.3 required=5.0 tests=BAYES_00,DATE_IN_PAST_24_48, FORGED_MUA_MOZILLA,REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,222ed89632aabb93 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.216.235.217 with SMTP id u67mr2479199weq.9.1343313035893; Thu, 26 Jul 2012 07:30:35 -0700 (PDT) Received: by 10.224.138.146 with SMTP id a18mr1317404qau.6.1343313035816; Thu, 26 Jul 2012 07:30:35 -0700 (PDT) Received: by 10.66.84.38 with SMTP id v6mr1671809pay.7.1343313035718; Thu, 26 Jul 2012 07:30:35 -0700 (PDT) Path: q11ni71877290wiw.1!nntp.google.com!16no7244823wil.1!news-out.google.com!a15ni113198934qag.0!nntp.google.com!q21no166084qas.0!news-out.google.com!b9ni64773113pbl.0!nntp.google.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.straub-nv.de!news.swapon.de!aioe.org!.POSTED!not-for-mail From: "Nasser M. Abbasi" Newsgroups: comp.lang.ada Subject: Re: Free AMD Core Math Library (BLAS/LAPACK) + Ada Date: Wed, 25 Jul 2012 01:13:00 -0500 Organization: Aioe.org NNTP Server Message-ID: References: <41b74e89-f112-4791-883d-236080652dbf@googlegroups.com> <16a6786f-6de5-49c4-90b7-a55cb238d52a@googlegroups.com> <509991f4-bcb4-45a0-84f3-b8393db64da4@googlegroups.com> <374bd898-5683-4350-8812-e3cae186ab2b@googlegroups.com> <87k3y3jxgj.fsf@ludovic-brenta.org> <23edac82-3e0e-47f5-85b7-36473e4a44ed@googlegroups.com> <8d88395a-9e03-4880-9728-aa0489dbc62f@googlegroups.com> <4d5e7463-824c-4ac1-af47-2a4a5bf0d8e6@googlegroups.com> <27d45d4b-0924-4179-9a05-169ab10839ce@googlegroups.com> Reply-To: nma@12000.org NNTP-Posting-Host: 6xfnQf8NWYR0Ab23/pVebQ.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2012-07-25T01:13:00-05:00 List-Id: On 7/25/2012 12:36 AM, Ada novice wrote: > First, I am using GNAT GPL 2011 and not the 2012 version. > But I am adding the -gnat2012 switch as this is required or else I get: > > $ gnatmake -I../ada mysolve.adbgcc -c -I../ada mysolve.adb > mysolve.adb:39:16: iterator is an Ada2012 feature > gnatmake: "mysolve.adb" compilation error > .... > > I am not convinced to think that using GNAT GPL 2011 instead of the 2012 version is > the culprit here. How can you say that? The construct for x of b loop -- print solution real_io.PUT ( x ); new_line; end loop; is Ada 2012 ONLY. It also said so in the error message. mysolve.adb:39:16: iterator is an Ada2012 feature You are compiling the source code with Ada that does not understand this construct. Hence the error mysolve.adb:39:21: too few subscripts in array reference You can simply for now, change the above LOOP to use standard Ada loop and not the new enhanced LOOP above, and all will be OK. Or use GNAT 2012 and leave the source as is. --Nasser