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.

[参考译文] 编译器/TMS320F2.8022万:找不到pow,sin,cos... 我已包含math.h

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/583968/compiler-tms320f28022-cannot-find-pow-sin-cos-i-have-math-h-included

部件号:TMS320F2.8022万

工具/软件:TI C/C++编译器

CCSv6 Win7 SP1 32位。

我想使用pow()函数(也是sin,cos,sqrt)(在软件浮点库中),但编译器显示“pow declared imaled”。

我加入了mathing.h,编译器发现了这一点。

有什么想法?

谢谢,Mark。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    问题已解决。 我不知道发生了什么错误,但我重写了#include <mathing.h>语句,现在一切都很好。 有趣的是,编译器没有抱怨include语句,只是没有包含math.h文件。
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    有时会发生:)