Using the math "exp" function

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using the math "exp" function

1,223 Views
MarcVDH
Contributor I
Hello,
I have (yet another) linking problem in CodeWarrior.
I need to perform a floating point calculation in my project using the "exp" function which should be included in <math.h>
However, even though it compiles fine, I cannot get this to work; the linker doesn't know this function.
The documentation in codewarrior tells me this function is declared in <math.h> and I did include this in my source file to no avail.
Maybe I need to add some library to my application? I cannot find any information on that.
I'm trying to use this in application note AN3518 but I also tried it in a newly created project using the new project wizard.
Can anyone help? I'm currently using the 52233 demo board and codewarrior for coldfire version 6.4.
Labels (1)
0 Kudos
1 Reply

285 Views
CrasyCat
Specialist III
Hello
 
Well exp is implemented in the library file (.a).
So you really need to link your application with a valid library file.
 
Please refer to the "ColdFire_Build_Tools_Reference.pdf", Chapter "ColdFire Runtime Libraries" -> "MSL for ColdFire Development" -> "Using MSL Libraries for ColdFire" to determine which library file you need.
 
CrasyCat
0 Kudos