This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C6657 怎么调用imglib库

 请教个问题
调用imglib 的 IMG_histogram_16函数

工程配置

 请教大家个问题
调用imglib 的 IMG_histogram_16函数

工程配置



包含了头文件

#include "../inc/imglib.h"

编译提示如下错误

<Linking>

 undefined                                                           first referenced       
  symbol                                                                 in file            
 ---------                                                           ----------------       
 IMG_histogram_16(unsigned short *, int, int, short *, short *, int) ./Src/LinearMapping.obj



  • 试试把#include "../inc/imglib.h"改成#include "imglib.h",然后在C6000 Compiler->Include Options添加头文件路径,如添加C:\ti\c665x SDK 02_00_01_07\imglib_c66x_3_1_1_0\inc和C:\ti\c665x SDK 02_00_01_07\imglib_c66x_3_1_1_0\packages。
  • 您好,按照上面所说的方法修改,提示错误一样,编译器用的CCS6.01。

    #include "imglib.h"

    -l"C:\ti\imglib_c66x_3_1_1_0\lib\imglib.ae66" -l"libc.a"
    <Linking>

    undefined first referenced
    symbol in file
    --------- ----------------

    first referenced in file


    IMG_histogram_16(unsigned short *, int, int, short *, short *, int) ./Src/LinearMapping.obj

    error #10234-D: unresolved symbols remain
    error #10010: errors encountered during linking; "Track-20170320.out" not built

  • 添加#include <ti\imglib\src\IMG_histogram_16\IMG_histogram_16.h>
  • 您好,我在文件中添加如下代码,错误同上。
    #include "imglib.h"
    #include <ti/imglib/src/IMG_histogram_16/IMG_histogram_16.h>
    #include <ti/imglib/src/IMG_histogram_16/c66/IMG_histogram_16.h>
  • 您好!

     怀疑是Link的问题,我做了如下2个测试;

    1. 在某个C文件中定义一个全局变量,然后在IMG_histogram_16.h文件中声明,在调用IMG_histogram_16库函数的c文件中能够正常使用该变量,说明函数的声明应该没有问题;

    2. 只在IMG_histogram_16.h头文件,或者其他的头文件中声明一个函数,但是没有函数实体,在在调用IMG_histogram_16库函数的c文件中调用,发现错误信息是一样的;

  • 您好!

    库的重新编译是怎么操作,帮忙指导下,我看下是不是编译器的版本不兼容,我用的编译器是CCS6.01,库用的是imglib_c66x_3_2_0_1,看说明文档库生成的编译器是CCS5.1;