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.

Why the VLIB_integralImage8 function API from vlib_c674x_3_3_0_3 can't be compile ?

Hi all,

Because of optimizing my source code by using VLIB API , i have tried to call the VLIB_integralImage8 function from vlib_c674x_3_3_0_3 VLIB for the souce .cpp file:

VLIB_integralImage8(pIn,
				 (uint16_t)tRect.width,
				 (uint16_t)tRect.height,
				 pLastLine,
				 pOut);//call the API function

while the input variables have been defined correctly accroding to the API guide before i added the call

Meanwhile, i have added the lib library may needed into the c6000 Linker File Search Path as following screenshot shown:

the VLIB_integralImage8.h header file also been added correctly , but after building the project , the error of unresolved symbol VLIB_integralImage8(const, first referenced in unsigned occured everytime?

Note: i have already installed the  vlib_c674x_3_3_0_3 into ti directory, and the .lib library shown in the screenshot above  was copy from the directoy of C:\ti\vlib_c674x_3_3_0_3\packages\ti\vlib\lib for my project directory, even if i change  the c6000 Linker File Search Path into C:\ti\vlib_c674x_3_3_0_3\packages\ti\vlib\lib ,the error still occurs.

Does i have missed some step to compile the VLIB_integralImage8 function API?

Thanks for the assistance.

Best Regards.

laiyi

  • The other critical problem is after i change the VLIB_integralImage8 API function call into another .c file, and i call the redefined API function from the.c file for my cpp source code ,the project building is ok, but the calculate results from the API call is 0 while the correct result mustbe integral value, that means i do something wrong to call the VLIB_integralImage8 API,.
    can you point out my inaccuracy?
    Thanks and Regrads.
    laiyi
  • I'm not familiar with vlib. Which library file supplies the function VLIB_integralImage8?

    Thanks and regards,

    -George

  • HI,Geogre,
    As above screenshot shown, the vlib.lib supplies the function VLIB_integralimage8, because i found the example used wtih the VLIB_integralimage8 function from the vlib_c674x_obj_3_3_0_3 packages.
    Thanks and regards.
    -laiyi
  • laiyi

    I will try and work with you to solve the issue.  I need a little more information from you and even your zip project. But before we get there I want to send you a document that deals with other device - The C6678 and other library, but describes similar build issues and how to debug them.  Read it and see if it helps you. This is only a draft personal document so just look at it and especially in chapter 2.2  - linker issue and in chapter 3.2

    /cfs-file/__key/communityserver-discussions-components-files/791/6327.CCS_5F00_INSTRUCTIONS_5F00_expertEngineers_5F00_09_5F00_01.pdf

    Regards

    Ran

  • Lai yi,

    Can you please provide the build log that you see in CCS and/or the inker and compiler options that you are using to compile the project.
    Before the unresolved symbols issue, does the linker report incompatible COFF and ELF object file error ??

    I am also wondering if this is a name mangling issue. Have you enabled C++ extensions in the compiler?? Also have you can you try to remove the #ifdef __cplusplus and explicitly use extern "C" { in the header and check if that helps. I am wondering if that symbol is overriden and the compiler is not able to handle the name mangling due to the overloaded function.

    Another way to check the name mangling is discussed here.
    wiki.tiprocessors.com/.../C6000_EABI_Migration

    Regards,
    Rahul