- publishing free software manuals
GNU Scientific Library Reference Manual - Third Edition (v1.12)
by M. Galassi, J. Davies, J. Theiler, B. Gough, G. Jungman, P. Alken, M. Booth, F. Rossi
Paperback (6"x9"), 592 pages, 60 figures
ISBN 0954612078
RRP £24.95 ($39.95)

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 should 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 should be installed for any work requiring fast vector and matrix operations. The following command line will link with the atlas library and its cblas interface,

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

If the atlas library is installed in a non-standard directory use the -L option to add it to the search path, as described above.

For more information about blas functions see 12.

ISBN 0954612078GNU Scientific Library Reference Manual - Third Edition (v1.12)See the print edition