我在将终结器集成到xcode项目时遇到问题,我得到的警告如下
Warning: Ignored symbols were detected in this build. In some cases ignored symbols could cause incorrect finalization. This may be caused by different static libraries containing the same symbol.
warning: no debug symbols in executable (-arch armv7)
还有一长串像这样的列表
Ignored symbol '_int_update' defined at address 0xfb2cc -- it was already defined at 0xd2c94
Ignored symbol '_init' defined at address 0xfcbd8 -- it was already defined at 0xfcba4
Ignored symbol '_update' defined at address 0xfcbe4 -- it was already defined at 0xfcbb0
Ignored symbol '_final' defined at address 0xfcbf0 -- it was already defined at 0xfcbbc
如有任何帮助或建议,将不胜感激。
发布于 2015-01-22 10:05:51
如果在所有具有相同名称的可重定位目标文件中定义了2个或更多个符号,则链接器将选择其中一个,而忽略其他符号。
如果这些符号具有不同的类型,则可能会在运行时导致无法理解的错误。
在Computer Systems_A Programmer-'s Perspective
的第7章中有一个例子
https://stackoverflow.com/questions/28085583
复制