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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,35f6cee6f665d64b X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.66.87.74 with SMTP id v10mr565918paz.36.1343417868300; Fri, 27 Jul 2012 12:37:48 -0700 (PDT) Path: g9ni92506pbo.0!nntp.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Ada novice Newsgroups: comp.lang.ada Subject: Re: ANN: Ada 2005 Math Extensions 20120712 Date: Fri, 27 Jul 2012 12:23:47 -0700 (PDT) Organization: http://groups.google.com Message-ID: <65f76f80-a1e5-4c60-8002-45becc2a1198@googlegroups.com> References: <167ecede-3588-45f0-904b-06a8be4cfec7@googlegroups.com> <2ba72d4e-6e88-4900-8232-c075242dec1f@googlegroups.com> NNTP-Posting-Host: 193.11.21.204 Mime-Version: 1.0 X-Trace: posting.google.com 1343417868 23674 127.0.0.1 (27 Jul 2012 19:37:48 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 27 Jul 2012 19:37:48 +0000 (UTC) In-Reply-To: <2ba72d4e-6e88-4900-8232-c075242dec1f@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=193.11.21.204; posting-account=Rr9I-QoAAACS-nOzpA-mGxtAlZ46Nb6I User-Agent: G2/1.0 X-Received-Bytes: 2368 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-07-27T12:23:47-07:00 List-Id: After knowing that the lapack and blas libraries are functional on my linux system, I tried the new math extension package. I do not understand however how lapack and blas are called. After issuing the command: $ gnatmake -p -P demo_extensions, I see further down the output these lines: gnatbind -E -I- -x /home/work/ada/simon2012/test/.build/demo_extensions.ali gnatlink /home/work/ada/simon2012/test/.build/demo_extensions.ali -g /home/work/ada/simon2012/lib/libgnat_math_extensions.a -Wl,-rpath,/usr/local/gnat-2012/lib/gcc/i686-pc-linux-gnu/4.5.4/adalib/ -llapack -lblas -o So the linker is calling -llpack and -lblas. When I execute $ ./demo_extensions, I do get a long list of outputs which end with the last example: ZGGEV example at http://www.nag.co.uk/lapack-ex/node122.html Eigenvalue( 1) = ( 3.00000E+00,-9.00000E+00) ... ... ... as expected from the code My question is at which stage -llpack and -lblas are called? The file demo_extensions.gpr does not have these "switches" in the linker section. I would like to know what lapack and blas libraries are being called, and if I can switch to the ACML ones which also work well for other Ada programs. Thanks, YC