“bad codegen,pointer diff” Xcode 4的链接器错误 [英] "bad codegen, pointer diff" linker error with Xcode 4

查看:91
本文介绍了“bad codegen,pointer diff” Xcode 4的链接器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Xcode 4重新编译C ++ iPhone应用程序我遇到了这个讨厌的链接器错误:

Recompiling a C++ iPhone app with Xcode 4 I get this nasty linker error:

ld: bad codegen, pointer diff in __static_initialization_and_destruction_0(int, int)
to global weak symbol vmml::Vector2<float>::ZERO for architecture armv6

任何人都知道这意味着什么?如何让它消失当然也会很好:)

Anyone know what it means? How to make it go away would be nice too of course :)

应用程序编译& Xcode 3中没有错误链接。

The app compiled & linked without error in Xcode 3.

编辑:解决方案是将默认隐藏的符号设置为在项目中所有目标的所有构建设置中。仍然没有更明智的实际问题是什么。

Edit: the solution is to set Symbols Hidden By Default to Yes in all the build settings of all targets in the project. Still none the wiser what the actual problem was.

推荐答案

解决方案是将默认隐藏的符号设置为在项目中所有目标的所有构建设置中。仍然没有更明智的实际问题是什么。

The solution is to set Symbols Hidden By Default to Yes in all the build settings of all targets in the project. Still none the wiser what the actual problem was.

这篇关于“bad codegen,pointer diff” Xcode 4的链接器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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