<p dir="ltr"></p>
<p dir="ltr">On Nov 12, 2016 4:44 AM, "김찬" <<a href="mailto:ckim@etri.re.kr">ckim@etri.re.kr</a>> wrote:<br>
><br>
> Hello,<br>
><br>
> I’m trying to make an rtems application which uses some math function.<br>
><br>
> I put #include <math.h>. When the powf function is in the Init() function, it works,<br>
><br>
> But when powf is called from another function(I want to call this function from Init..), I get ‘undefined reference to powf’ error.<br>
><br>
> I tried merning the files into one but it is the same. What can be the problem?</p>
<p dir="ltr">You should only have to include math.h and link against libm. There should be nothing odd.</p>
<p dir="ltr">My first guess is that the -lm argument is before the other .o on the link command.</p>
<p dir="ltr">Check that and if that isn't it, can you produce an example?<br></p>
<p dir="ltr">> Thanks!<br>
><br>
> Chan Kim<br>
><br>
> <br>
><br>
> 김 찬 (Chan Kim)<br>
><br>
> 책임연구원, 프로세서연구실, 지능형반도체연구부<br>
><br>
> 한국전자통신연구원<br>
><br>
> O) 042-860-5773 C) 010-3418-9152 E) <a href="mailto:ckim@etri.re.kr">ckim@etri.re.kr</a><br>
><br>
> <br>
><br>
><br>
> _______________________________________________<br>
> users mailing list<br>
> <a href="mailto:users@rtems.org">users@rtems.org</a><br>
> <a href="http://lists.rtems.org/mailman/listinfo/users">http://lists.rtems.org/mailman/listinfo/users</a><br></p>