DISCLAIMER: I don't really use fortran - I just have a perverse interest in this kind of thing
I don't think your error is related to linking the lapack library (at least not directly) - it's telling you that the test executable needs a local module called lapack.mod. Where did you get the test.f90 file from? is there also a lapack.f90 file? if so you would need to compile that as well, either as a separate step or something like
Code:
gfortran lapack.f90 test.f90 -llapack
See for example --> http://www.cs.mtu.edu/~shene/COURSES...mod-files.html
Bookmarks