I seek to way build a new version of LAPACK to produce “.lib” file on Windows. I do some work on it but I face a weird problem in linking. I use the first program. Then, by the following commands, I want to link it to library:
gfortran -c test_blas.f95
gfortran -o main.exe test_blas.o -L(path to library)\libblas.lib
The compiler showed:
test_blas.o:test_blas.f95:<.txt0x4>: undefined reference to ‘dgemm__’
collect2.exe: error: ld returened 1 exit status
So, I decided to use “librefblas.lib” and again it showed the above error. I repeated this procedure for “librefblas.a” and even download your files and repeated but it still showed the above error.
Can you help to find which step is wrong?