Part Number: TMS320F2812
Tool/software: Code Composer Studio
I am using a F2812 based experiment kit and for floating point operation in this kit i am using IQmath library. For using the IQmath library and to link this library with my CCS project i have done the following things :
1. I have included the path of the header files in ""Project name>>properties>>C2000 compiler>>Include Options>>Include Search Path"
2. I have given the path of IQmath_c64x+.lib file in "Project name>>properties>>C2000 linker>>File Search Path"
3. I am using 2812_IQmath_lnk.cmd and i have given the path of 2812_IQmath_lnk.cmd in "Project name>>properties>>C2000 linker>>File Search Path".
Now when i am building the project i am getting the following errors :
"undefined first referenced
symbol in file
--------- ----------------
__FtoIQ17 ./main.obj
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "Test_1.out" not built"
The part of the code where i have used the IQmath function are given below :
#include "DSP281x_Device.h" // DSP281x Headerfile Include File
#include "DSP281x_Examples.h" // DSP281x Examples Include File
#include "IQmathLib.h"
#include "IQmathCPP.h"
Uint16 Voltage1;
Uint16 Voltage2;
main()
{
_iq17 a,b,c;
a = _FtoIQ17 (3.0);
b = _FtoIQ17 (4095.0);
c = _IQ17div (a,b);
InitSysCtrl();
//going on ...}
I am totally confused why i am getting this error. Have i done any above mentioned settings wrong ? Should i do any extra settings to use the IQmath library properly ? Is the linking method is i have done is correct ?