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.

Compiler/TMDSIDK437X: Adding Math operation to a sitara am437x projects

Expert 1130 points

Part Number: TMDSIDK437X
Other Parts Discussed in Thread: AM4379

Tool/software: TI C/C++ Compiler

Hi Team

I need to add mathematical operations sin,cos etc to a sitara am4379 project

when doing so I get a linker error which is not resolved what I add #include <math.h>


How should I do it ?

Thanks

  • I presume you build your project with Code Composer Studio.  Please perform the build where this happens ...

    R2d2 said:
    when doing so I get a linker error

    In the Console (not Problems) view, use the icon Copy Build Log to save off all the build commands and diagnostics to a text file.  Be sure to use the file extension .txt.  Attach that file to your next post.

    Thanks and regards,

    -George

  • I saw in other projects a library called m was added to the project

    this seems to resolve the linker issue

    is this indeed the best solution for the sitara or is there a more optimal way ( as far as executing time) ?

  • I don't know.  Once I see your build log, I should be able to either reply directly, or notify the experts best able to help you.

    Thanks and regards,

    -George