But I get the following error: "undefinded reference to 'sgesv' " when I type "gcc lap.c -o lap -llapack -lblas"I wrote another program that just uses BLAS and compiles fine with "gcc prueba.c -o prueba -lblas". However, this program using the lapack routine returns an error. Have I missed anything? What am I doing wrong?