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 autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,81bb2ce65a3240c3 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.228.227 with SMTP id sl3mr9856491pbc.5.1341497333288; Thu, 05 Jul 2012 07:08:53 -0700 (PDT) Path: l9ni10941pbj.0!nntp.google.com!news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: "Nasser M. Abbasi" Newsgroups: comp.lang.ada Subject: Re: What would you like in Ada202X? Date: Thu, 05 Jul 2012 09:08:48 -0500 Organization: Aioe.org NNTP Server Message-ID: References: <359469402363169386.837099rmhost.bauhaus-maps.arcor.de@news.arcor.de> <95a28c69-f8fc-4910-9554-7c561d23879c@googlegroups.com> Reply-To: nma@12000.org NNTP-Posting-Host: /9Ior3ZloQ1Tx0EySzmEaA.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-05T09:08:48-05:00 List-Id: On 7/5/2012 8:07 AM, shai.lesh@gmx.com wrote: > On Thursday, July 5, 2012 1:21:15 PM UTC+1, Nasser M. Abbasi wrote: >> On 7/5/2012 7:11 AM, Nasser M. Abbasi wrote: > >>>> ./example1 >>> Dot product is: 0.00000E+00 > > How did you compile and run example 1? I created a project in GPS with example1.adb I do not use windows for anything relating to software development, and I do not use GPS. I use linux, and the command line and a text editor :) I just used gnatmake *.adb > > E:\learsof\ada\Ada_BLAS\example1.o: In function `example_support__real_blas__dot__2': > E:/learsof/ada/Ada_BLAS/ada_blas-real.adb:388: undefined reference to `sdot_' > collect2: ld returned 1 exit status > gnatlink: error when calling C:\GNAT\2012\bin\gcc.exe > gnatmake: *** link failed. > > Would you kindly explain how you succeeded? I am on a Windows platform. > > It looks like linker is not seeing your blas library. Just make sure to install blas before using the above. see note in README "LAPACK comes with an incomplete version of the BLAS. The missing routines can be picked up from NETLIB. If you are using the BLAS that come with LAPACK and your linker is complaining that it can't find some routines, now you know why!" I use linux, so all what I have to do is synaptic package manager and select libatlas3gf-base from the menu (which is Automatically Tuned Linear Algebra Software, generic shared library) and click OK. That is all. This will install all the needed blas stuff on your system. Now you can go to the Ada BLAS biding and gnatmake it. Make sure to set your LD_LIBRARY_PATH first This is my LD_LIBRARY_PATH >echo $LD_LIBRARY_PATH /usr/lib/i386-linux-gnu/:/usr/lib/atlas-base/:/usr/lib/atlas-base/atlas/ That is all. Or you can try to find the GNAT supplied blas library (see the other thread on this), and adjust your windows env. variables or your gpr build file (I do not use that). to make sure the linker knows where the shared blas library is. --Nasser