求助打包APK编译时遇到undefined reference to的问题

现在有一个公用的函数,该函数的声明放在一个.h文件中,该函数主要用于获取图片资源,便于资源文件路径修改及获取
extern inline void getResource(TagResource &tagResource);
在cpp中实现该函数
inline void getResource(TagResource &tagResource)
{
tagResource.vtResource_.clear();

switch (tagResource.emChildTag_)
{
default:
break;
}
}

然后在其他层的源文件中包含改该.h文件,用于获取图片资源
在VS2012环境下编译运行通过
但是在使用指令打包apk时编译失败,具体信息如下图

求助各位坛友:12:

android.mk文件里你加cpp了没?还是用自动搜索?

android.mk 与CMakeLists.txt都加了cpp
后来测试感觉是不能使用inline ,只能用
extern void getResource(TagResource &tagResource);

但是又有错误为
BUILD FAILED
E:\Android\adt-bundle-windows-x86-20130522\sdk\tools\ant\build.xml:885: The following error occurred while executing this line:
E:\Android\adt-bundle-windows-x86-20130522\sdk\tools\ant\build.xml:887: The following error occurred while executing this line:
E:\Android\adt-bundle-windows-x86-20130522\sdk\tools\ant\build.xml:899: The following error occurred while executing this line:
E:\Android\adt-bundle-windows-x86-20130522\sdk\tools\ant\build.xml:281: null returned: 2

#include 包含路径不对

:14: :14:
好像是我的proj.android被我搞挂了