Other Parts Discussed in Thread: MATHLIB
Tool/software: Code Composer Studio
The following code is from the IQ math document. I am getting this error while compiling in ccs.
#include<IQmathLib.h> #define PI 3.14159 _iq input, sin_out; void main(void ) { /* 0.25 x PI radians represented in Q29 format */ input=_IQ29(0.25*PI); sin_out =_IQ29sin(input); }
Console is showing like this.
undefined first referenced
symbol in file
--------- ----------------
__IQ29sin ./main.obj
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "math_example.out" not built
>> Compilation failure
makefile:141: recipe for target 'math_example.out' failed
gmake[1]: *** [math_example.out] Error 1
makefile:137: recipe for target 'all' failed
gmake: *** [all] Error 2