ndk编译c文件找不到inculd的方法

ndk-build

[armeabi-v7a] SharedLibrary  : libFFTEmTest.so
jni/Holography/Embedded/common/src/b_BitFeatureEm/ScanDetector.c:82: error: undefined reference to 'bbf_Scanner_init'
jni/Holography/Embedded/common/src/b_BitFeatureEm/ScanDetector.c:109: error: undefined reference to 'bbf_Scanner_exit'
jni/Holography/Embedded/common/src/b_BitFeatureEm/ScanDetector.c:298: error: undefined reference to 'bbf_Scanner_create'
jni/Holography/Embedded/common/src/b_BitFeatureEm/ScanDetector.c:362: error: undefined reference to 'bbf_Scanner_resetOutPos'
jni/Holography/Embedded/common/src/b_BitFeatureEm/ScanDetector.c:365: error: undefined reference to 'bbf_Scanner_assign'
jni/Holography/Embedded/common/src/b_BitFeatureEm/ScanDetector.c:367: error: undefined reference to 'bbf_Scanner_positions'
jni/Holography/Embedded/common/src/b_BitFeatureEm/ScanDetector.c:376: error: undefined reference to 'bbf_Scanner_bitParam'
jni/Holography/Embedded/common/src/b_BitFeatureEm/ScanDetector.c:379: error: undefined reference to 'bbf_Scanner_resetIntPos'
jni/Holography/Embedded/common/src/b_BitFeatureEm/ScanDetector.c:383: error: undefined reference to 'bbf_Scanner_getPatch'
jni/Holography/Embedded/common/src/b_BitFeatureEm/ScanDetector.c:386: error: undefined reference to 'bbf_Scanner_scanIndex'

ScanDetector.c


#include "b_BasicEm/Functions.h"
#include "b_BasicEm/Math.h"
#include "b_BitFeatureEm/ScanDetector.h"
void bbf_ScanDetector_init( struct bbs_Context* cpA,
                            struct bbf_ScanDetector* ptrA )
{
    uint32 iL;

    ptrA->minScaleE = 0;
    ptrA->maxScaleE = 0;
    ptrA->maxImageWidthE = 0;
    ptrA->maxImageHeightE = 0;
    bbf_Scanner_init( cpA, &ptrA->scannerE );

ScanDetector.h

#include "b_BitFeatureEm/Scanner.h"


Scanner.h

/* ---- associated objects ------------------------------------------------- */

/* ---- external functions ------------------------------------------------- */

/* ---- \ghd{ constructor/destructor } ------------------------------------- */

/** initializes bbf_Scanner  */
void bbf_Scanner_init( struct bbs_Context* cpA,
                       struct bbf_Scanner* ptrA );

1个回答

bbf_Scanner_init的定义在哪里?可能编译时能在头文件里面找到它的声明,但找不到原始定义
有可能是你没有编译bbf_Scanner_init所在的源文件

renjiazhuo123
丿灬序曲 给你啦,谢谢回答,我把这个Scanner.cpp文件改为.c后缀就好了
一年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐