简体   繁体   English

用mingw准备lapack dll

[英]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 在我成功通过gfortran --shared -o blas.dll blas\\src\\*.f -O成功地制作了blas.dll之后,我下载了lapack 3.3.0版本和mingw(包含所有库),我无法成功制作lapack。 gfortran --shared -o lapack.dll src\\*.f blas.dll -O dll 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. 注意:我将路径设置为mingw / bin,还将dlamch.f和slamch.f从安装目录复制到src目录。

:: 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. 我下载了lapack,可以重现该错误。
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. 如您所引用页面上的注释所示,您可能会遇到问题,命令行太长而无法处理Shell。 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. 当我这样做时, CreateProcess错误消失了,但是不幸的是,接下来弹出一些undefined reference错误。 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). 似乎有一些对blas函数的引用,但lapack附带的blas源代码中并未包含这些函数(我认为它们可能是C函数)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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