老师您好:
我按您的写法,写了个base.h文件,但是bash.h 文件写 #include< jni.h> 时候报错。
不知道该单独写bash.h 文件 ,该怎么让别的cpp文件使用昵
加上include_directories(src/main/cpp/base/)
然后nativ-lib.cpp文件引用#include <base.h>
如果是其他lib中的cpp文件需要使用,需要在CMakeLists中建立连接关系
比如增加
target_link_libraries( # Specifies the target library.
people-lib
# Links the log library to the target library.
${log-lib} )