丿灬序曲
2018-11-26 08:26
采纳率: 100%
浏览 754

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条回答 默认 最新

  • 牛在哪里 2018-11-26 08:34
    已采纳

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

    点赞 打赏 评论

相关推荐 更多相似问题