Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - math library issues: (2 Items)
   
math library issues  
Hi, guys

I created a qnx c project in QNX® Momentics® Integrated Development Environment 4.7.0. The I use the 'sin' function in
 the main func which <math.h> included. But a "undefined reference to `_Sin' " occured. Could anybody tell me what's 
going on and how to solve this issue?

Jerry
BR
Re: math library issues  
you have to link against the libm library.
Add -lm to the list of libs for your project.
cheers,
Peter