错误命令 /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-g++-4.2 失败,退出代码 1

发布于 2025-01-02 00:42:43 字数 717 浏览 4 评论 0原文

可能的重复:
Xcode 退出代码 1 - 重复符号

当我使用 OpenFeint SDK 库时,有超过 1,000 个错误,因此我将文件扩展名更改为 .mm,但现在出现此错误。有人可以帮我吗?

ld:/Users/mymac/Faizan 中的重复符号 _iToastDuration /ChefCookMania/build/ChefCookMania.build/Debug-iphonesimulator/ChefCookMania.build/Objects-normal/i386/MainGameScene.o 和 /Users/mymac/Faizan /ChefCookMania/build/ChefCookMania.build/Debug-iphonesimulator/ChefCookMania.build/Objects-normal/i386/AppDelegate.o 错误命令 /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-g++-4.2 失败,退出代码为 1

Possible Duplicate:
Xcode Exit Code 1 - Duplicate Symbol

When I used the OpenFeint SDK library there were more than 1,000 errors, so I changed my files' extension to .mm, but now I get this error. Can anybody help me, please?

ld: duplicate symbol _iToastDuration in /Users/mymac/Faizan
/ChefCookMania/build/ChefCookMania.build/Debug-iphonesimulator/ChefCookMania.build/Objects-normal/i386/MainGameScene.o
and /Users/mymac/Faizan
/ChefCookMania/build/ChefCookMania.build/Debug-iphonesimulator/ChefCookMania.build/Objects-normal/i386/AppDelegate.o error Command
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-g++-4.2
failed with exit code 1

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

流云如水 2025-01-09 00:42:43

该错误是由符号 _iToastDuration 引起的
请检查这两个文件并避免在 AppDelegateMainGameScene 中循环导入

The error is due to the symbol _iToastDuration
Please check both the files and avoid cyclic imports in AppDelegate and MainGameScene

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文