comp.lang.ada
 help / color / mirror / Atom feed
From: "Nasser M. Abbasi" <nma@12000.org>
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
Date: 2010-10-16T08:45:53-07:00	[thread overview]
Message-ID: <i9chbh$225$1@speranza.aioe.org> (raw)
In-Reply-To: m262x242ge.fsf@pushface.org

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



      reply	other threads:[~2010-10-16 15:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-16  5:46 anyone seen this link error trying to link Ada program with blas and lapack? "cannot find -lgnalasup" Nasser M. Abbasi
2010-10-16  6:25 ` Nasser M. Abbasi
2010-10-16  7:30   ` Nasser M. Abbasi
2010-10-16 14:49     ` Simon Wright
2010-10-16 15:45       ` Nasser M. Abbasi [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox