未定义的符号:vmldExp2
我正在使用 f2py 和英特尔 fortran 编译器来包装一些 fortran 代码,这些代码调用一些数学库,如 dexp 和 dpow 。
编译很顺利,没有报错,但是当我尝试运行打包的python模块时,提示错误:
导入错误:/usr/lib/python2.7/site-packages/foo/foo.so:未定义符号:vmldExp2
我切换到gfortran,似乎类似的问题仍然存在,但对于vmldPow2
。
如何在 f2py 上下文中解决此问题?
I am using f2py and Intel fortran compiler to wrap some fortran code which calls some math library like dexp
and dpow
.
The compilation went smoothly without reporting any err, but when I attempted to run the wrapped python modules, the error prompts up:
ImportError: /usr/lib/python2.7/site-packages/foo/foo.so: undefined symbol: vmldExp2
I switched to gfortran and it seems that the similar problem persists, but for vmldPow2
.
How can I fix this in the f2py context?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看来intel svml lib已经改变了很多,我尝试了各种方法和选项/标志,但最终根本没有解决问题,但是在我将intel fortran编译器从9.1升级到12.0之后,它消失了,现在一切都像魅力一样。
It seems that the intel
svml
lib has been changed quite a bit, I tried various ways and option/flags but ended up not solving the problem at all, but after I upgraded intel fortran compiler from 9.1 to 12.0, it disappeared and now everything works like a charm.