Linker errors with Fortran to C library - /usr/lib/libf2c.so: undefined reference to 'MAIN__'

后端 未结 3 1680
心在旅途
心在旅途 2021-01-21 05:08

So I\'m having a little trouble with the fortran to C library. Now, before I get into the problem, I can tell you that I cannot use g2c as some forum sites have suggested.

3条回答
  •  没有蜡笔的小新
    2021-01-21 05:35

    Well,

    sudo rm /usr/lib/libf2c.so && sudo ln -s /usr/lib/libf2c.a /usr/lib/libf2c.so
    

    will delete /usr/lib/libf2c.so, hence the new error you're getting.

    So as a minimum you'll have to reinstall that library and link to the new version, and then see where you are.

提交回复
热议问题