I installed the "Automotive Math and Motor Control Library set for MPC5748G" following by its user guide.
But I got many error messages while I'm only using the function of "Acos", does anyone know the reason? I'm posting my code and error messages as below.
Code: (omit the unnecessary code)
#include "derivative.h" /* Include peripheral declarations */
#include "project.h" /* Define Macros */
#include "mode.h" /* Change clock modes */
#include "adc.h" /* Configure ADC */
#include "GFLIB_Acos.h"
#define GFLIB_ACOS_DEFAULT_F16 &f16gflibAcosCoef
extern uint16_t Result;
tFloat f16Input;
tFloat f16Angle;
int main(void)
{
...
while(1) {
if (ADC_1.ISR.B.ECH)
{
ADC1_Read_Chan(); /* Read conversion Results from ADC*/
f16Input = FRAC16(Result);
f16Angle = GFLIB_Acos_F16(f16Input, GFLIB_ACOS_DEFAULT_F16);
...
}
}
}
Error message:


And there are many similar prefix "SWLIB_xxx", "MLIB_xxx", "GFLIB_xxx" with the following error "error: operator '==' has no left operand" shown in the console.
While the example on the user guide is very simple, but it causes the same errors as above.