I installed scalapack using the scalapack installer and let it download BLAS,BLACS,LAPACK,and SCALAPACK. I would like to get a code to compile and run before I try to link in any optimized libraries. The installation seemed to work as it should and I ended up with all the desired library files. However, I am trying to compile the following code:

i know there's probably some mpi stuff missing ahead of sl_init but this should at least compile. However, i get the following errors:/home/jkillian3/scalapack/lib/libscalapack.a(SL_init.o): In function `sl_init_':SL_init.f:(.text+0x39): undefined reference to `blacs_pinfo_'SL_init.f:(.text+0x55): undefined reference to `blacs_get_'SL_init.f:(.text+0x70): undefined reference to `blacs_gridinit_'SL_init.f:(.text+0xb5): undefined reference to `blacs_setup_'collect2: ld returned 1 exit status