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.

math.h/c67xmathlib into video_copy example

Hello everyone,

I am building my video codec via modifying the "video_copy" example in the codec engine shipped with EZSDK_5_01_01_80.

Though I included <math.h> in my source codes, the compiler returned errors like " undefined reference to `log10' ".

How do I modify the linker options to get <math.h> functions working, or how can I bring c67xmathlib libraries into the package?

 

Regards,

Hongdong

 

  • I've partly figured it out by myself... I appended "-lm" to "GCArmv5T.lnkOpts.suffix" field in examples/_config.bld and got <math.h> function working. But how about c67xmathlib...

    I tried adding in packages.bld:

    Pkg.otherFiles = ['c67xfastMath.lib',];

    That does not make a difference...

     

    Hongdong