[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

math.h



Hi, here is a newbie's question:
i want RTEMS to do some simple calculations,
so there are functions like "sin(x)" and
"cos(x)" in the codes.
but when i compile the codes, it tells me
that "undefined reference to sin" and
"undefined reference to cos" ...
i have added "#include <math.h>" to the
source code, what else should i do?

              Bert
----------------------------------------------
?????????????????????????????????????????????? 
http://y.21cn.com 
21CN???????????????????????????????? 
http://news.21cn.com 
????????????????????????????21CN?????????? 
http://mail.21cn.com/alliance/ 
???????????????????????????????? 
http://news.21cn.com/social/