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,c1bdceb867926fdb X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news4.google.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Interfacing Ada with C Date: Mon, 26 Jul 2010 20:46:10 +0100 Organization: A noiseless patient Spider Message-ID: References: <0ee9eec7-6024-4fb8-8df0-f65c146e4b84@i28g2000yqa.googlegroups.com> <143ef70b-7e74-426b-a621-a5fd157849be@x21g2000yqa.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Mon, 26 Jul 2010 19:46:10 +0000 (UTC) Injection-Info: mx03.eternal-september.org; posting-host="KCXegvZb5vh43D+f3BR6Ew"; logging-data="12059"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/dOIYAETV1Ngk9wMjhHQIQO0p+N+kICMI=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin) Cancel-Lock: sha1:YzvJqSuS76kva2wz8OiwWt9ZTPQ= sha1:kkY5BLUGTUZ9X3l/68L1IGWgScY= Xref: g2news1.google.com comp.lang.ada:12591 Date: 2010-07-26T20:46:10+01:00 List-Id: Ada novice writes: > On Jul 26, 1:21 am, Simon Wright wrote: > >> I've encoded a general complex eigenvalues function, interfacing to the >> LAPACK procedure zgeev > Thank you very much for your commendable efforts. This is a very good > example to demonstrate how Ada can be binded with LAPACK. Well, it's a start! >>(b) the results >> are the same with GNAT GPL 2010 and GCC 4.5.0, (c) the output looks good >> (from your inputs) .. >> >>    $ ./test_zgeev >>     2.00000000000000E+00  4.00000000000000E+00 >>     2.00000000000000E+00 -4.00000000000000E+00 >>     9.99999999999996E-01  2.07319734774360E-16 > > > I have Win XP and gcc (GCC) 4.3.6 20100603 for GNAT GPL 2010 > (20100603). I get slightly different output: > > 1.99999999999999E+00 3.99999999999999E+00 > 2.00000000000000E+00 -4.00000000000000E+00 > 1.00000000000000E+00 -3.45920620709768E-16 > > Your GCC version is more recent than mine. Maybe this is causing the > discrepancies or maybe it's because of your different OS. Did you > install your GCC separately? I got mine bundled with the GNAT GPL > 2010. Mine was part of GNAT GPL 2010, but on Mac OS X LAPACK and BLAS come with the OS; I suspect that on Windows they don't.