- publishing free software manuals
GNU Scientific Library Reference Manual - Revised Second Edition (v1.8)
by M. Galassi, J. Davies, J. Theiler, B. Gough, G. Jungman, M. Booth, F. Rossi
Paperback (6"x9"), 636 pages, 60 figures
ISBN 0954161734
RRP £24.99 ($39.99)

Get a printed copy>>>

2.2.2 Linking with an alternative BLAS library

The following command line shows how you would link the same application with an alternative CBLAS library called ‘libcblas’,

$ gcc example.o -lgsl -lcblas -lm

For the best performance an optimized platform-specific CBLAS library may be used for -lcblas. The library must conform to the CBLAS standard. The ATLAS package provides a portable high-performance BLAS library with a CBLAS interface. It is free software and can be used with GSL in place of ‘libgslcblas.a’. The following command line will link with the ATLAS library and its CBLAS interface instead,

$ gcc example.o -lgsl -lcblas -latlas -lm

For more information see section 12 BLAS Support.

ISBN 0954161734GNU Scientific Library Reference Manual - Revised Second Edition (v1.8)See the print edition