关于android ndk支持c++的有关问题
关于android ndk支持c++的问题
ndk-r6已经支持STL了,为什么#include <vector> #include <iostream> #include <fstream> #include <string>
#include <sstream>这些头文件一个都找不到?在线急等。
对了,我在Application.mk中已经加了APP_STL := stlport_static
------解决方案--------------------
首先要检查当前文件是否为.cpp后缀,同时为了使用标准库必须加入 APP_STL := stlport_static 在Application.mk文件中,就没有问题。还有的话就换换资源
ndk-r6已经支持STL了,为什么#include <vector> #include <iostream> #include <fstream> #include <string>
#include <sstream>这些头文件一个都找不到?在线急等。
对了,我在Application.mk中已经加了APP_STL := stlport_static
------解决方案--------------------
首先要检查当前文件是否为.cpp后缀,同时为了使用标准库必须加入 APP_STL := stlport_static 在Application.mk文件中,就没有问题。还有的话就换换资源