Can't include STL header files with Android NDK r5?

Test/jni/main. C :14:18: error: vector: No such file or directory You're compiling with a C compiler, probably. Change the extension to *.

Cpp and check that a C++ compiler is invoked in the tool-chain.

Test/jni/main. C:14:18: error: vector: No such file or directory You're compiling with a C compiler, probably. Change the extension to *.

Cpp and check that a C++ compiler is invoked in the tool-chain.

That shouldn't make a difference as the error is file not found. – Mark Ingram Dec 16 '10 at 20:59 @Mark: of course it can. The include paths of C and C++ compilers may be different.

– ybungalobill Dec 17 '10 at 9:07 @Mark: Note: verified: gcc rejects when compiled as C. – ybungalobill Dec 17 '10 at 9:17 You're exactly right, tried it this morning when I got in. Thanks very much :) – Mark Ingram Dec 17 '10 at 10:36.

Read the documentation in $NDKROOT/docs. Specifically CPLUSPLUSSUPPORT.html. The default C++ library supports only a very limited set of features.

The c++ library can be changed with the APP_STL variable in your Application.mk.

1 I've read that file, and I forgot to mention originally that I do have APP_STL set in Application.mk. – Mark Ingram Dec 16 '10 at 20:58.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions