What This Error Means And How To Solve It?
Solution 1:
I think you are using two different implementation of the standard library in the same project.
It looks like you are compiling your files with (the headers of) an stlport implementation of the standard library in D:/android..., and you link against your local library.
You have to configure the linker in your ide (or Makefile) to use also the lib file of the same implementation (somewhere in D:/android... I guess).
Solution 2:
This is a linking error. You need to add APP_STL := stlport_static
to your Apllication.mk
file. Also make sure that you use -fno-exceptions
flag, since STLport is not compatible with C++ exceptions and RTTI.
You can get more info in APPLICATION-MK.HTML
which is availavle in the docs
folder of the NDK. CPLUSPLUS-SUPPORT.HTML
is also worth to read.
Solution 3:
this looks like a linker error. You probably forgot to add STL library reference to your build. Or it can't be found
Solution 4:
Did you do this ?
#include<stdexcept>#include<vector>usingnamespace std;
Solution 5:
When I changed
vector<float> firstPoint = coordinates.at(0);
to
vector<float> firstPoint = coordinates[0];
it started compiling..... :s y?
Post a Comment for "What This Error Means And How To Solve It?"