I am attempting to retrofit the PID macro found in pid_grando.h of the motor control application library in controlSUITE into some existing code for the F2811. Since the macro implements IQmath, I have added IQmathLib.h, and IQmath.lib to my projects and have created the various memory mappings, include statements, etc. that are needed. Both the header and library file are in my project root and the linker search path is "$(Proj_dir)\". However when I attempt to build my project I am getting the linker error for undefined symbols pasted below. Compounding my confusion is the fact that I use other IQmath functions in my code (_IQ, _IQabs, and _IQint) and don't seem to be getting any errors on those functions. My configuration is:
- CCS v3.3.38.2
- DSP\BIOS v5.41.02.14
- Code Gen Tools v5.2.10
- IQmath lib v1.6.0
Does anyone have any thoughts as to what may be causing this problem and/or what I could do to resolve it?
[Linking...] "C:\Program Files\Texas Instruments\C2000 Code Generation Tools 5.2.10\bin\cl2000" -@"Release.lkf"
<Linking>
undefined first referenced
symbol in file
--------- ----------------
___IQmpy C:\\Documents and Settings\\XPMUser\\Desktop\\G7612 local from desktop (not svn)\\_release\\wd_loops.obj
___IQsat C:\\Documents and Settings\\XPMUser\\Desktop\\G7612 local from desktop (not svn)\\_release\\wd_loops.obj
error: unresolved symbols remain
error: errors encountered during linking; "./_release/G7612dspMain.out" not
built
>> Compilation failure