请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:TMS320F28027 大家好、
我想问您在使用 SFO ()函数时的编译错误。
这是源代码。
#include "SFO_V6.h"
#define GLOBAL_Q 22 // range = +-512
#include "C:\ti\c2000\C2000Ware_3_04_00_00\libraries\math\IQmath\c28\include\IQmathLib.h"
int MEP_ScaleFactor;
volatile struct EPWM_REGS *ePWM[PWM_CH] =
{ &EPwm1Regs, &EPwm1Regs, &EPwm2Regs, &EPwm3Regs, &EPwm4Regs};
Void main()
{
status = SFO(); // Do the function once whole the codes.
}
我向链接器添加了2个库、 SFO_TI_build_V6b.lib 和 IQmath.lib。
最后、我遇到了这样的错误。
undefined first referenced symbol in file --------- ---------------- SFO() ./src/main.obj error #10234-D: unresolved symbols remain
可以建议我避免此错误吗?
谢谢、此致、
Junpei Kishi