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.

Help! Help!

 Now i am doing some picture processing. I have to use some function in "math.h"

 when  ./runxdc.sh  it is shows that

                         "package/cfg/app_release/....o470Mv(.text+0x2d68):**.c: undefined reference to 'cos'"

                        "package/cfg/app_release/....o470Mv(.text+0x3004):**.c: undefined reference to 'sin'"

                        "package/cfg/app_release/....o470Mv(.text+0x3040):**.c: undefined reference to 'tan'"

And in my programm I do have #include <math.h> & #include <tgmath.h>

Please ! 

 

  • Where is the file runxdc.sh coming from?  I did a quick search thru the DVSDK files and I could not find it. 

    Also, can you describe your overall goal.  Based on the extensions in the log above, it appears you are trying to build something to run on the ARM; do you need xdc?  is your goal to run this ARM code via codec engine?

    The simple answer is that if the header file exists and it is included in your code, the PATH to help the build scripts find it are probably wrong.  Where are you definind the inclde paths? 

    FYI, I am not an XDC expert, but I can go try to get you the answers if I can get a bit more information.