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,73a6dbe06e1250ce X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!n1g2000prb.googlegroups.com!not-for-mail From: Jerry Newsgroups: comp.lang.ada Subject: Re: gnatmake: "ada.numerics.real_arrays" is not a predefined library unit Date: Mon, 21 Apr 2008 14:34:17 -0700 (PDT) Organization: http://groups.google.com Message-ID: <1dc68fcc-5445-4b5d-8f52-d0ff49b7e147@n1g2000prb.googlegroups.com> References: NNTP-Posting-Host: 75.171.61.127 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1208813657 30083 127.0.0.1 (21 Apr 2008 21:34:17 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 21 Apr 2008 21:34:17 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: n1g2000prb.googlegroups.com; posting-host=75.171.61.127; posting-account=x5rpZwoAAABMN2XPwcebPWPkebpwQNJG User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en; rv:1.8.1.14) Gecko/20080409 Camino/1.6 (like Firefox/2.0.0.14),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:21023 Date: 2008-04-21T14:34:17-07:00 List-Id: On Apr 21, 4:34 am, Reinert Korsnes wrote: > Hello, > > My linux system (opensuse 10.3 updated) does not > find "ada.numerics.real_arrays. Should it ? > > Details: > -------- > I tried to compile a program starting like this: > > with Text_IO; > use Text_IO; > with Ada.Numerics,Ada.Numerics.Real_Arrays; > with Ada.Numerics.Generic_Elementary_Functions; > procedure test2 is > > ... > > I used the command: > > gnatmake -gnat05 test2.adb > > Then I get the error message: > > test2.adb:3:21: "ada.numerics.real_arrays" is not a predefined library unit > gnatmake: "test2.adb" compilation error > > Is there any hope for me to use "Ada.Numerics.Real.Arrays" ? > > reinert I don't want to confuse the discussion here, but the OS X ada list (www.macada.org) has been discussing this lately, (as well as December, 2007 if you're inclined to dig through archives). The upshot is that the file i-forbla.adb is edited to comment out one line, so that after the edit we see this: -- pragma Linker_Options ("-lgnalasup") All I did then was to compile a "hello" program using -a that with-ed Ada.Numerics.Long_Real_Arrays and Ada.Numerics.Long_Complex_Arrays, then copied the new .o and .ali to the proper Ada library directory. I can supply more details if needed. Also, I don't pretend to understand why this works. Incidentally, BLAS and LAPACK, both Fortran and C versions, come pre- installed on OS X so linking to them is pretty trivial. Jerry P.S. Sorry if this post appears twice. My last two posts did, and I'm blaming it on my browser.