当前位置: 代码迷 >> Android >> 关于android ndk支持c++的有关问题
  详细解决方案

关于android ndk支持c++的有关问题

热度:105   发布时间:2016-05-01 10:36:38.0
关于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文件中,就没有问题。还有的话就换换资源
  相关解决方案