更新到xcode 4.2时stl_vector出错

时间:2022-09-07 07:42:18

I'm trying to update an app of mine to Xcode 4.2, and now it's giving me a bunch of errors in stl_vector.h, a library that is part of the built in libraries. Here is a picture of the error:

我正在尝试将我的应用程序更新为Xcode 4.2,现在它在stl_vector.h中给了我一堆错误,这是一个内置库的一部分库。这是错误的图片:

更新到xcode 4.2时stl_vector出错

Any ideas what I'm doing wrong? I can't figure out how to fix this. I don't have permission to even edit the function that is throwing errors since it is built in.

我有什么想法我做错了吗?我无法弄清楚如何解决这个问题。我没有权限甚至编辑因内置错误而抛出错误的函数。

1 个解决方案

#1


1  

A slight guess, since you don't give us enough information, but if OBJMaterial etc are Objective-C classes, you can't pass them by value, i.e. you always work with pointers.

一个小小的猜测,因为你没有给我们足够的信息,但如果OBJMaterial等是Objective-C类,你不能按值传递它们,即你总是使用指针。

#1


1  

A slight guess, since you don't give us enough information, but if OBJMaterial etc are Objective-C classes, you can't pass them by value, i.e. you always work with pointers.

一个小小的猜测,因为你没有给我们足够的信息,但如果OBJMaterial等是Objective-C类,你不能按值传递它们,即你总是使用指针。