Clion 说 clang: 错误: 链接器命令失败,退出代码 1(使用 -v 查看调用)
我最近下载了 Clion 并遇到了一些问题。首先,我编写了一个简单的代码(它可以工作),然后我创建了另一个 C++ 文件并编写了另一个简单的代码。但是现在,当运行这两个代码中的任何一个时,都会引发错误:
clang: error: linker command failed with exit code 1 (use -v to see invocation)
当我删除其中一个代码时,另一个代码开始工作。我似乎在 stackoverflow 上找到了一个解决方案,它说只需执行 Clean ,然后 Build ,尽管我不知道该怎么做。你会帮忙吗?
I recently downloaded Clion and ran into some problem. First I wrote one simple code (it works), then I created another C++ file and wrote another simple code. But now, when running either of these two codes, an error is thrown:
clang: error: linker command failed with exit code 1 (use -v to see invocation)
when I remove one of the codes, the other one starts working. I seem to have found a solution on stackoverflow and it says just do Clean and then Build, though I can't figure out how to do it. Will you help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论