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=2.0 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA, REPLYTO_WITHOUT_TO_CC,WEIRD_PORT autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c2861777d1e7d2b2 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.219.170 with SMTP id pp10mr350806pbc.1.1342053903558; Wed, 11 Jul 2012 17:45:03 -0700 (PDT) Path: l9ni11511pbj.0!nntp.google.com!news1.google.com!goblin1!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: "Nasser M. Abbasi" Newsgroups: comp.lang.ada Subject: Re: Lapack Ada binding matrices/vectors issue, how to best to resolve? Date: Wed, 11 Jul 2012 19:45:01 -0500 Organization: Aioe.org NNTP Server Message-ID: References: Reply-To: nma@12000.org NNTP-Posting-Host: KdJUrTuvv3Zv/s8pPxNluw.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:13.0) Gecko/20120614 Thunderbird/13.0.1 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-11T19:45:01-05:00 List-Id: On 7/11/2012 7:38 PM, Nasser M. Abbasi wrote: > > --------------------------- > with Interfaces.Fortran; use Interfaces.Fortran; > with Ada.Numerics.Real_Arrays; use Ada.Numerics.Real_Arrays; > with labase; use labase; -- LAPACK binding > > procedure foo3 is > > A1 : constant Fortran_Real_Matrix(1..2,1..2):= > 12.0*((12.0, 6.0),(-12.0, 6.0)); -- ERROR > > A2 : constant Real_Matrix(1..2,1..2) := > 12.0*((12.0, 6.0),(-12.0, 6.0)); -- OK > begin > null; > end foo3; > -------------------- > opps that should be foo3.adb in the command below (I copied the file content to new file and named it foo3, but pasted the older command on the window which was foo2.adb) >> gnatmake -gnat2012 -I/lapada/ada foo2.adb -largs -lblas > gcc -c -gnat2012 -I/lapada/ada foo2.adb > foo2.adb:24:20: expected type "Fortran_Real_Matrix" defined at labase.ads:94 > foo2.adb:24:20: found type "Interfaces.Fortran.Complex" > gnatmake: "foo2.adb" compilation error >> > here is the command again: >gnatmake -gnat2012 -I/lapada/ada foo3.adb -largs -lblas gcc -c -gnat2012 -I/lapada/ada foo3.adb foo3.adb:10:13: expected type "Fortran_Real_Matrix" defined at labase.ads:94 foo3.adb:10:13: found type "Complex_Star_16" defined at labase.ads:52 gnatmake: "foo3.adb" compilation error > (I just did not want someone to get confused if they saw this). --Nasser