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.

C66x MATHLIB issues for mathlib_c66x_3_1_0_0

Other Parts Discussed in Thread: MATHLIB

I downloaded the MATHLIB from http://www.ti.com/tool/mathlib and am trying to use the natural C versions of atandp, expsp_c, logsp_c etc. I am using the mathlibae.66 that comes compiled and bundled with the zip. THere are linking errors. It seems that the externs defined in common.h are not found anywhere -

For atandp_c - The link error is for an undefined symbol V

extern double logtable[];
extern double kTable[];
extern double jTable[];
extern double V[];

  • The user manual for Mathlib says that you have to link the mathlib.lib library. Have you tried linking this library and including the path for the headers as mentioned in the user manual? Providing path for the header files in your project should fix the problem.

    The path to the MATHLIB libraries must be provided to the linker via:

    -l <MATHLIB_INSTALL_DIR>/packages/ti/mathlib/lib/mathlib.lib

    The individual projects when imported from the mathlib_c66x_3_1_0_0\packages\ti\mathlib\src\atandp folder for liitle endian and big endian compiles with no issues which I have verified.


    Regards

    Asheesh

  • Hi,

    These variables (logTable, kTable, jTable and V) should be defined in a file called tables.c, located in:

    MATHLIB_DIR\packages\ti\mathlib\src\common\tables.c

    So if using the lib doesn't work, you can add this file to your project.

    Regards

    J