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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,89c1829026285446 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!feeder.news-service.com!94.75.214.39.MISMATCH!aioe.org!not-for-mail From: "Nasser M. Abbasi" Newsgroups: comp.lang.ada Subject: Re: anyone seen this link error trying to link Ada program with blas and lapack? "cannot find -lgnalasup" Date: Sat, 16 Oct 2010 08:45:53 -0700 Organization: Aioe.org NNTP Server Message-ID: References: Reply-To: nma@12000.org NNTP-Posting-Host: tUYQ4Ty9mMw9Pdc8TJRFQA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 Xref: g2news2.google.com comp.lang.ada:15541 Date: 2010-10-16T08:45:53-07:00 List-Id: On 10/16/2010 7:49 AM, Simon Wright wrote: > Nasser, > > Could you try just "gnatmake -gnat05 main.adb"? it works fine here. > > AdaCore have supplied BLAS& LAPACK functionality but not in the > libraries you would expect! > > Under cygwin, gcc 4.3.4: --------------------------- $ gnatmake -gnat05 main.adb gcc -c -gnat05 main.adb gnatbind -x main.ali gnatlink main.ali /usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lgnalasup collect2: ld returned 1 exit status gnatlink: error when calling /usr/bin/gcc.exe gnatmake: *** link failed. under GPL 2010 gnat: -------------------- gnatmake -gnat05 main.adb gcc -c -gnat05 main.adb gnatbind -x main.ali gnatlink main.ali ----------------------- So, you'r right, it does not look like I needed to build the lapack and blas libraries if using gnat gpl 2010. That is good. I assume then these libraries come in with gnat. thanks --Nasser