This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: problems with math.h of gcc


You need to compile it with the -lm option. 
lm is the libmath stuff... :)

Best regards,

Paulo

"david benbasat" <benbasat_david@hotmail.com> writes:

> Michael,
> I understand that you have some experience in this field.
> When I run a program with trigonometric function like sin, tan etc..
> I get errors: undefined reference to sin
>               undefined reference to tan
>               etc..
> What should I do?
> 
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
> 
> 

-- 
Paulo J. Matos aka PDestroy : pocm(_at_)rnl.ist.utl.pt
Instituto Superior Tecnico - Lisbon
Software & Computer Engineering - A.I.
 - > http://www.rnl.ist.utl.pt/~pocm


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]