“错误的代码生成,指针差异"Xcode 4 的链接器错误 [英] "bad codegen, pointer diff" linker error with Xcode 4

查看:18
本文介绍了“错误的代码生成,指针差异"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.

编辑:解决方案是在项目中所有目标的所有构建设置中将Symbols Hidden By Default设置为Yes.仍然没有更明智的实际问题是什么.

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.

推荐答案

解决方案是在所有目标的所有构建设置中将Symbols Hidden By Default设置为Yes在项目中.仍然没有更明智的实际问题是什么.

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.

这篇关于“错误的代码生成,指针差异"Xcode 4 的链接器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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