From: Orion P. <or...@co...> - 2010-07-12 16:57:09
|
On 07/08/2010 06:43 PM, Jerry wrote: > > On Jul 8, 2010, at 9:37 AM, Orion Poplawski wrote: > >> gcc 4.5 just landed in Fedora rawhide. Now getting the following >> error >> building Ada examples. Looks like we may need to add -llapack to >> the link, >> but not sure where this should be done. > > GNAT (GNU Ada Translator) 2005 and 2012 require LAPACK and BLAS > libraries to implement certain numeric functionality. I'm not sure > where in the gcc series this entered but I think it was 4.3. In the > Ada Reference Manual this functionality is described in Annex G.3. > > You might have both C and Fortran versions of these libraries--OS X > does. Ada can handle either (in principle) and I don't think it > matters which one is used. I don't know which is currently being > linked on OS X without looking into it. (Actually, I think OS X puts > them both into the same framework which could mean in the same library.) > > There is a build flag in PLplot to indicate the presence or absence of > Ada 2005 (versus Ada 95) but we should probably move towards using it > when possible as this compiler becomes more widespread. > > In PLplot, there is minimal usage of this functionality--only some > type declarations for arrays of floating point numbers. If the flag > for Ada 2005 is not set, cmake causes these declarations to be made in > the bindings themselves. So if you don't want to link the libraries, > you should be able to proceed with PLplot by adjusting the flag. It seems to me then that if I specify Ada 2005(7), the plplot build system should add lapack and blas to the appropriate link command. -- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA/CoRA Division FAX: 303-415-9702 3380 Mitchell Lane or...@co... Boulder, CO 80301 http://www.cora.nwra.com |