【问题标题】:Makefile cannot install code due to previous installation of earlier version由于先前安装了早期版本,Makefile 无法安装代码
【发布时间】:2020-12-13 03:10:06
【问题描述】:

我之前使用 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.

这是错误的原因吗?如果是这样,我是否必须手动卸载以前安装的文件?我该怎么做?

非常感谢您的帮助!

【问题讨论】:

    标签: c++ c makefile error-handling


    【解决方案1】:

    为此,我们需要您的 Makefile。 里面定义了clean等命令,确保规则正确清理文件。

    【讨论】:

    • 您好 Jambon,欢迎来到 StackOverflow。由于这并不是问题的真正答案,因此最好将其作为评论。
    猜你喜欢
    • 1970-01-01
    • 2020-12-10
    • 1970-01-01
    • 2016-12-25
    • 1970-01-01
    • 1970-01-01
    • 2014-04-13
    • 1970-01-01
    相关资源
    最近更新 更多