请教各位,我用的CCSv6建的基于F2812的工程,编程语言为C++,用abs函数需要包含哪个头文件吗?我试了IQMathLib.h 和<math.h>都不行
#20 identifier "abs" is undefined
还望多多指教!
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.
请教各位,我用的CCSv6建的基于F2812的工程,编程语言为C++,用abs函数需要包含哪个头文件吗?我试了IQMathLib.h 和<math.h>都不行
#20 identifier "abs" is undefined
还望多多指教!
请参考
下面为本人使用C语言实现的FFT及IFFT算法实例,能计算任意以2为对数底的采样点数的FFT,算法参考上面给的流程图。
/*
* zx_fft.h
*
* Created on: 2013-8-5
* Author: monkeyzx
*/
#ifndef ZX_FFT_H_
#define ZX_FFT_H_
typedef float FFT_TYPE;
#ifndef PI
#define PI (3.14159265f)
#endif
typedef struct complex_st {
FFT_TYPE real;
FFT_TYPE img;
} complex;
int fft(complex *x, int N);
int ifft(complex *x, int N);
void zx_fft(void);
#endif /* ZX_FFT_H_ */