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:未定义的符号

Guru**** 2535750 points
Other Parts Discussed in Thread: MATHLIB

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/886563/ccs-omapl138b-ep-mathlib-undefined-sysmbols

器件型号:OMAPL138B-EP
主题中讨论的其他器件:OMAPL138MATHLIB

工具/软件:Code Composer Studio

大家好、

我正在使用 OMAPL138、并希望在 Mathlib 中使用 pow 函数。 我在项目中包含了头文件(mathlib.h)和库(mathlib.lib)。 但是、我在链接期间遇到错误。  

未定义    
符号  
------  
粉末(浮点、浮点)......

您有什么想法吗、为什么会发生这种情况?

其次、是否有指南逐步说明了如何使用 Mathlib (http://www.ti.com/tool/MATHLIB)? 我已经查看了文档、但可以找到清晰的解释。

谢谢、

哈坎

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    我通过在包含的标头中添加"extern c" pragma 来解决了该问题。 我忘记了在 cp 文件中调用 pow 函数。

    #ifdef __cplusplus
    extern "C"{
    #endif

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

    #ifdef __cplusplus

    #endif