[英]OpenBLAS + MinGW64 Static Link?
I am able to compile Armadillo + OpenBLAS under MinGW64, however the link is through "libopenblas", which I believe is dll. 我可以在MinGW64下编译Armadillo + OpenBLAS,但是链接是通过“ libopenblas”实现的,我相信它是dll。 Under Ubuntu I am able to link through "openblas" which I believe is static.
在Ubuntu下,我可以通过“ openblas”链接,我相信它是静态的。
Under windows when I switch to "openblas" I got error messages: bad reloc address 0x54 _gfortran_compare_string undefined reference 在Windows下,当我切换到“ openblas”时,出现错误消息:错误的重定位地址0x54 _gfortran_compare_string未定义引用
These errors persist when forcing "-static". 强制使用“ -static”时,这些错误仍然存在。
I wonder how can I force "-static" under windows so that my exe is independent of dlls. 我想知道如何在Windows下强制执行“ -static”,以便我的exe独立于dll。 Thanks for any advise!
感谢您的任何建议!
Best, Andy 最好,安迪
Problem solved. 问题解决了。 Also need to link "gfortran" when doing "-static".
做“ -static”时还需要链接“ gfortran”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.