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.

LCDKC6748 mathlib and dsplib issues

Other Parts Discussed in Thread: MATHLIB

I am having an issue with linking to these libraries. 

In the code I put:

#include <include>

In project I have added the following include paths:

C:/Program Files (x86)/Texas Instruments/mathlib_c674x_3_0_1_1/inc

and

C:/Program Files (x86)/Texas Instruments/mathlib_c674x_3_0_1_1/packages

When I select open declaration inside the main code I get the header file with the includes in the src directory so the include paths seems to be working.  But when I select open declaration (cossp for example) I get nothing.  With I try to compile I get the famous "unresolved symbol cossp, first referenced in ./main.obj" error message.

The same thing happens when I try using the dsplib.  Any suggestions?

  • It should read I have put #include <mathlib.h> in the main code.

  • Bill,

    I have moved this thread over to the device forum in hopes that it will get a faster response there...

  • David,

    can you post here the link on the new thread? I don´t know where to answer.

    Thanks.

    Petr Duga

  • Hello Bill,

    I did it so:

    1) Copy mathlib.h into project

    In my case from:

    "C:\ti\mathlib_c674x_3_1_0_0\packages\ti\mathlib\mathlib.h

    To

    ''C:\Work\VIDEO_test\VIDEO_test_flash\mathlib.h''

    2) Add paths to compiler and linker

    -CCS5: project explorer=> right click on your project=>Properties=>C6000 Compiler=>Include options=>

    add: path to packages

    in my case:

    "C:\ti\mathlib_c674x_3_1_0_0\packages"

    -CCS5: project explorer=> right click on your project=>Properties=>C6000 Linker=> File Search Path=> add library file=> add: path to mathlib.lib

    in my case:

    "C:\ti\mathlib_c674x_3_1_0_0\packages\ti\mathlib\lib\mathlib.lib"

    3) #include "mathlib.h"  in any .c file in your project, where you need to use the mathlib functions

    4) call functions

    Best regards

    Petr Duga

  • Hi Bill,

    Thanks for your post.

    I guess, you expect this function cossp but it tries to resolve the symbol but it couldn't since the function cossp would be supplied by mathlib.a674.

    All the vector versions of single point precision (possibly also the double precision) e.g. cossp_v, atan2sp_v,  atansp_v, etc. which would probably located in

    ~\mathlib_c674x_3_0_1_1\packages\ti\mathlib\src\common\*

    Kindly add the above include path in the project properties include option and also, if you see linking errors of unresolved symbols, please include the library path in the project properties which would link against the mathlib.a674 library  in the mathlib_c674x_3_0_1_1\lib directory of C674X-MATHLIB. Kindly ensure to link this assembly library in the project, sothat, you wouldn't face this issue further.

    For more details, please refer the below E2E thread for better understanding on linker errors on MATHLIB functions:

    http://e2e.ti.com/support/development_tools/compiler/f/343/p/206048/730636.aspx#730636

     To get the C67x-MATHLIB software, kindly refer the below link:

    http://www.ti.com/tool/MATHLIB

    Thanks & regards,

    Sivaraj K

    -------------------------------------------------------------------------------------------------------
    Please click the Verify Answer button on this post if it answers your question.
    -------------------------------------------------------------------------------------------------------