BLAS(1):安装cblas以及测试时遇见的问题
安装cblas
具体可以参照这篇博客:安装blas
测试例子时遇见的问题
$ g++ test.c -o test cblas_LINUX.a libblas.a
/usr/bin/ld: libblas.a(xerbla.o): in function `xerbla_':
(.text+0x58): undefined reference to `_gfortran_st_write'
/usr/bin/ld: (.text+0x64): undefined reference to `_gfortran_string_len_trim'
/usr/bin/ld: (.text+0x80): undefined reference to `_gfortran_transfer_character_write'
/usr/bin/ld: (.text+0x90): undefined reference to `_gfortran_transfer_integer_write'
/usr/bin/ld: (.text+0x98): undefined reference to `_gfortran_st_write_done'
/usr/bin/ld: (.text+0xa8): undefined reference to `_gfortran_stop_string'
**解决办法:×× 加上-lgfortran
g++ test.c -o test cblas_LINUX.a libblas.a -lgfortran