在尝试为Linux编译NMR软件modelfree4.20时,我遇到了这个错误。该发行版附带MakeFile,因此我在modelfree文件夹中键入“make”以尝试编译它,在写入一些文件后,我收到以下错误:
/usr/bin/ld: -f may not be used without -shared
collect2: error: ld returned 1 exit status
Makefile:74: recipe for target 'modelfree4' failed
make: *** [modelfree4] Error 1
我不知道“-f may not be used without -shared”是什么意思,也不知道它想要我修复什么?当我打开MakeFile时,我没有看到任何带有-f或-shared的内容,并且在运行“make”时我也没有指定任何选项。
非常感谢您的帮助!
./configure
,可能需要使用cmake
生成特定于环境的Makefile
。 - wallyk