I believe vector might be part of STL? Android does not come with a STL stack for C++.
You can refer to this thread: http://groups.google.com/group/android-ndk/browse_thread/thread/ed652276ee28a1d2 for a port of stl on Android. Make sure to define the extra C include path in your android.mk file as posted in that thread. -Ke On Jul 8, 12:36 pm, jpujol95 <[email protected]> wrote: > Hello. > > Does anyone know how to build a C++ code containing the "vector" data > structure? > > ------------------------- > #include <vector> > ------------------------- > > When compiling, I get the error: > "vector: No such file or directory". > > Indeed, the file vector doesn't seem to exist in the NDK folder. I > have it in a Visual Studio folder but I can't figure out how to > integrate it within Android as it generates a flood of compiling > errors because of dependencies on other files. > > Does a similar data structure exist in Android? > > Regards, > > Jonathan --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
