I built my C++ library with the GCC compiler without any errors in the Cygwin environment, but when I tried to build JNI files with the library using the ndk-build tool, a couple of errors occurred.
One error is missing iostream.h, fstream.h and iomanip.h files. The other one is ‘Your C++ compiler cannot handle class templates’.
How can I get around these issues?
As for the header errors, check out the suggestion here for pulling in more extensive C++ stdlib implementations:
Cannot find <iostream>
As for the class template issue, that doesn’t appear to be an error coming from the compiler itself. What are you trying to compile? Maybe it’s coming out of an #error directive?