简体   繁体   中英

preparing lapack dll with mingw

I downloaded lapack 3.3.0 version and mingw (with all libraries) after that I succeded to make blas.dll by gfortran --shared -o blas.dll blas\\src\\*.f -O I could not succeeded to make lapack.dll by gfortran --shared -o lapack.dll src\\*.f blas.dll -O

I got the following error

gfortran: error: CreateProccess: No such file or directory

Note: I set path to mingw/bin and also copied dlamch.f and slamch.f from install directory to src directory.

:: instructions got from this site

http://www.codingday.com/compile-lapack-and-blas-as-dll-on-windows/

What should I do

I donwloaded lapack and can reproduce the error.
As is indicated in the comments on the page you referred to, you might be running into a problem with the command line being too long for the shell to handle. Try first compiling all source files, and then linking them, in two separate steps.

gfortran -c src/*.f -O
gfortran -shared -o lapack.dll *.o blas.dll

When I did this the CreateProcess error went away, but unfortunately some undefined reference errors popped up next. It appears there are references to a couple of blas functions which aren't included in the blas sources accompanying lapack (I think they might be C functions).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM