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 - compilation error while including math.h: (3 Items)
   
compilation error while including math.h  
hi

In my project , while including math related functions like sin, cos or log etc., it gives "undefined reference" error, 
eventhough i include math.h file

please help

regards
mukuntan
Re: compilation error while including math.h  
You need to add libm.so

mukuntan balasundaram wrote:
> hi
> 
> In my project , while including math related functions like sin, cos or log etc., it gives "undefined reference" error
, eventhough i include math.h file
> 
> please help
> 
> regards
> mukuntan
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post15290
> 

-- 
cburgess@qnx.com
Re: compilation error while including math.h  
Hi Mukuntan!
In Momentics SDP: Progect->Properties->C/C++ Build-Settings -...-" Libraries" in window "Libraries (l)" need add  letter
 <m> (i.e. library libm.so) -this option qcc (QCC), look Help.
regards
Soloviev (marfia@rambler.ru)