Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
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