Using the math "exp" function

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Using the math "exp" function

1,710件の閲覧回数
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.
ラベル(1)
タグ(1)
0 件の賞賛
返信
1 返信

772件の閲覧回数
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 件の賞賛
返信