AnsweredAssumed Answered

Using math.h library with MCF5213

Question asked by Albert Agraz on Oct 27, 2009
Latest reply on Oct 28, 2009 by Tom Thompson

Hi,

 

I am trying to use functions from the math library in MCF5213 and I always get the same error:

 

Error   : Undefined : "exp"
Project_3.c line 50   Referenced from "main" in

Link failed.

 

The library is properly include with: #include <math.h> . Is it necessary to set the -lm parameter in the compiler? And if so, how to do it?

 

Thanks a lot,

 

 

Albert

Outcomes