我以前使用makefile安装了一些代码。现在,我正在安装代码的更新版本(具有一些附加功能)。问题是当我运行make clean; make class
时出现以下错误:
ld: 13 duplicate symbols for architecture x86_64
collect2: error: ld returned 1 exit status
make: *** [class] Error 1
我相信这是因为它试图将与先前安装相同的文件安装在相同的目录中。我在其他安装上尝试过make uninstall
,但这只是返回make: *** No rule to make target `uninstall'. Stop.
这是错误的原因吗?如果是这样,我是否必须手动卸载以前安装的文件?我该怎么做?非常感谢您的帮助!
最佳答案
为此,我们需要您的Makefile。
在其中定义了清理和其他命令,请确保规则正确清理了文件。
关于c++ - 由于早期版本的先前安装,Makefile无法安装代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63561686/