这是什么错误意味着,如何解决呢? [英] What this error means and how to solve it?

查看:177
本文介绍了这是什么错误意味着,如何解决呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图建立的Andr​​oid NDK使用C ++的code。我有有一个参数矢量&lt的方法;矢量<浮球GT; >坐标

I am trying to build a C++ code using NDK in android. I have a method which has a parameter vector < vector <float> > coordinates

一切都建立正常,直到我写我的方法中此行

Everything builds fine until I write this line inside my method

矢量&lt;浮球GT; firstPoint = coordinates.at(0);

我开始收到此错误

D:/eclipseworkspace/myLibProject/obj/local/armeabi/libmyLibProject.a(FileName.o): In function `std::priv::_Vector_base<std::vector<float, std::allocator<float> >, std::allocator<std::vector<float, std::allocator<float> > > >::_M_throw_out_of_range() const':
D:/androidndk/sources/cxx-stl/stlport/stlport/stl/_vector.c:45: undefined reference to `std::__stl_throw_out_of_range(char const*)'
collect2: ld returned 1 exit status
make: *** [/cygdrive/d/eclipseworkspace/myLibProject/obj/local/armeabi/libOutputName.so] Error 1

我不知道为什么发生这种情况而谷歌没有任何帮助。

I have no clue why this is happening and Google is not helping either.

感谢。

推荐答案

当我改变了

vector<float> firstPoint = coordinates.at(0);

vector<float> firstPoint = coordinates[0];

它开始编译.....:?S y时

it started compiling..... :s y?

这篇关于这是什么错误意味着,如何解决呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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