Hi,
I am using I.MX 6Q with Linux freescale 3.0.35-2508. I am trying to do some maths calculations, when i use sin,cos or sqrt function i am getting error.
Multiple markers at this line
- undefined reference to
`cos'
- undefined reference to
`sin'
I have included math.h header.
Kindly advice how to over come this issue,
Please use -lm option in GCC command line in order to include math libs.:
As for Eclipse :
Dystopian Code: Solving Gcc Math.h Linking Problem in Eclipse
Thanks...