I have a real weird compilation problem with some math function from math.h
float DCM_Matrix[3][3];
void Euler_angles()
{
float angleRoll = 0.0;
asin(angleRoll);
angleRoll = -DCM_Matrix[2][0];
// asin(angleRoll);
}
this compile with no problem, but, the same
float DCM_Matrix[3][3];
void Euler_angles()
{
float angleRoll = 0.0;
asin(angleRoll);
angleRoll = -DCM_Matrix[2][0];
asin(angleRoll);
}
give me
o: In function `FlightAngle_DCM::Euler_angles()':
C:\Users\Kenny\AppData\Local\Temp\build5154699056886148174.tmp\/FlightAngle.h:331: undefined reference to `asin'
collect2: ld returned 1 exit status
!?!?!?