Using the STL with Android NDK C++ Using the STL with Android NDK C++ android android

Using the STL with Android NDK C++


I had the same problem, and then realized that I need to put:APP_STL := stlport_static

in Application.mk, not Android.mk ... doh

Then I needed to add:${ANDROID_NDK_ROOT}\sources\cxx-stl\stlport\stlport

to the include paths in eclipse to make it not complain in the UI about errors


It seems that the mistake was a somehow broken NDK. I reinstalled it (delete, unzip) and now it works.