架构i386的重复符号错误 [英] Duplicate Symbol Error for architecture i386

查看:129
本文介绍了架构i386的重复符号错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在尝试构建时遇到此错误:

I got this error when i tried to build:

重复符号__Z8ERRCHECK11FMOD_RESULT in:

"duplicate symbol __Z8ERRCHECK11FMOD_RESULT in:

/Users/codemenmini2012-2/Library/Developer/Xcode/DerivedData/MagicSleepFullVersion-agxulkdijnxbqmbuigucmrczufyw/Build/Intermediates/MagicSleepFullVersion.build/Debug-iphonesimulator/MagicSleepFullVersion.build/Objects-normal/i386/MagicSleepViewController.o

/Users/codemenmini2012-2/Library/Developer/Xcode/DerivedData/MagicSleepFullVersion-agxulkdijnxbqmbuigucmrczufyw/Build/Intermediates/MagicSleepFullVersion.build/Debug-iphonesimulator/MagicSleepFullVersion.build/Objects-normal/i386/MagicSleepViewControllerIpad.o

ld:架构i386的1个重复符号
clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)

ld: 1 duplicate symbol for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)"

如何解决这个问题?

推荐答案

将一个文件的内容复制并粘贴到anot时可能会发生错误她的文件带有接口名称,这意味着两个类具有相同的接口名称。

The error may occur when you copy and paste the contents of one file to another file with its interface name which means two classes with same interface name.


在您的代码中,您有两个具有相同接口名称的不同文件。

In your code you have two different files with the same Interface name.

这篇关于架构i386的重复符号错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆