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.

CCS/OMAPL138B-EP: Mathlib: undefined sysmbols

Part Number: OMAPL138B-EP
Other Parts Discussed in Thread: MATHLIB

Tool/software: Code Composer Studio

Hello guys,

I am using an OMAPL138 and want to use pow function inside the Mathlib. I included header file (mathlib.h) and library (mathlib.lib) into my project. However I have an error during linking. 

undefined     
symbol 
--------- 
powsp(float, float) ......

Do you have any idea, why this happens?

Secondly, is there a guide that explains how to use Mathlib (http://www.ti.com/tool/MATHLIB) step by step? I have checked the documentation but could find a clear explanation.

Thanks,

Hakan

  • I solved the problem by adding "extern c" pragma at the included header. I forgot to mention that I call pow function in cpp file.

    #ifdef __cplusplus
    extern "C" {
    #endif

    #include "ti/mathlib/src/powsp/c674/powsp.h"

    #ifdef __cplusplus
    }
    #endif