链接到旧版库:-预制预制文件中的-lgfortranbegin [英] link against a legacy library: -lgfortranbegin from a premade makefile

查看:75
本文介绍了链接到旧版库:-预制预制文件中的-lgfortranbegin的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试编译某些研究人员开发的程序时遇到了麻烦,这些程序应该以非常精确的方式进行傅立叶变换和其他有用的操作

经过一些研究,看来libfortranbegin是遗留代码并且不再可用(来源:此处)还是应该做一些更新或使用另一个库?

感谢您的时间和考虑:)

解决方案

解决此问题的常用方法如下:

  • 删除 -lgfortranbegin
  • 检查新的链接错误,并查看原始源代码中的哪个源文件实现了此功能
  • 将此源文件添加到您的存储库和构建中,然后返回到步骤2.

请注意,它最终仍可能无法正常工作,但希望您将能够使用缺少的符号.

I got some trouble trying to compile a programm developed by some researcher supposed to compute in a very precise way fourier transform and some other useful operation scientific paper here, whereas all the files needed and the makefile are provided.

I use gcc and a version of ubuntu available on windows10 (18.04), so, I linked all the librabries needed by the program and called in the pre-made makefile (fftw, lapack, gfortran..) everything is ok untill here, but once I tried to compile I got the error message:

/usr/bin/ld: cannot find -lgfortranbegin
collect2: error: ld returned 1 exit status
Makefile:38: recipe for target 'furian_main' failed
make: *** [furian_main] Error 1

After a few research it appears that libfortranbegin is a legacy code and no more available(source: here ) ..

So my question is: is it possible for me to compile my program without this legacy library (somme people say that we could get rid off this library, but I didn't understand what they do .. here) Or should I do some update or use another library ?

Thank you for your time and consideration :)

解决方案

The usual way of solving this is the following one:

  • remove the -lgfortranbegin
  • check the new link errors and look at what source file from the original source code implemented this feature
  • add this source file to your repository and your build and go back to step 2.

Be aware that it may still not work in the end, but hopefully you will be able to have the missing symbols.

这篇关于链接到旧版库:-预制预制文件中的-lgfortranbegin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆