我从TI官网上下载了C67x FastRTS Library:c67xmathlib_2_01_00_00_Windows_Setup.exe
默认安装在C:\c67xmathlib_2_01_00_00 路径下,
然后在Link.cmd文件中加入:
-l C:\c67xmathlib_2_01_00_00\lib\c674xfastMath.lib
在C语言源文件中加入:
#include "C:\c67xmathlib_2_01_00_00\inc\c67fastMath.h"
编译时出现30个error:
"C:\c67xmathlib_2_01_00_00\inc\../src/sp/atan2sp/atan2sp.h", line 15: error: expected a ")"
"C:\c67xmathlib_2_01_00_00\inc\../src/sp/atansp/atansp.h", line 15: error: expected a ")"
"C:\c67xmathlib_2_01_00_00\inc\../src/sp/cossp/cossp.h", line 15: error: expected a ")"
"C:\c67xmathlib_2_01_00_00\inc\../src/sp/divsp/divsp.h", line 15: error: expected a ")"
…………
如果将FastRTS安装目录下的.lib文件拷到CCS4.2默认安装目录:
C:\Program Files\Texas Instruments\ccsv4\tools\compiler\c6000\lib 下,
FastRTS安装目录下的.h文件拷贝到:
C:\Program Files\Texas Instruments\ccsv4\tools\compiler\c6000\include 下,
然后在Link.cmd文件中加入:
-l c674xfastMath.lib
在C语言源文件中加入:
#include <c67fastMath.h>
编译时出现一个error:C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/include/c67fastMath.h",
line 17: fatal error: could not open source file "../src/sp/atan2sp/atan2sp.h"
1 fatal error detected in the compilation of "../main.c".
Compilation terminated.
我本意是想调用里面的一些函数做运算,提升速度,但这是什么情况???
要怎样做才能顺利调用这这些函数??