I would like to calculate cosinus and sinus so i  am using sin() and cos () 
function, but i have this error:
lcd.o: In function `main':
/home/user/Fox/devboard-R2_01/apps/rssreader/lcd.c:126: undefined reference to 
`cos'
/home/user/Fox/devboard-R2_01/apps/rssreader/lcd.c:127: undefined reference to 
`sin'

Even if i include "math.h" with or not -lm compilation parameters

Thanks 
Sébastien


> Message du 20/05/08 à 12h26
> De : "Alessandro Rubini" <[EMAIL PROTECTED]>
> A : [email protected]
> Copie à : [email protected], [EMAIL PROTECTED]
> Objet : Re: [foxboard] Trigonometrics function
> 
> 
> > I would like to use sinus and cosinus functions to my project, but
> > sin() and cos() are not recognized.
> 
> You should be more specific in your problem report. What is the exact
> command that fails and what is the error you get?
> 
> > I tried to include math.h with no
> > success. Could someone help me ?
> 
> You might miss "-lm" to link the math library. If it's something else,
> please be more specific in your question
> 
> /alessandro
> 

____________________________________________________

Vous aussi bénéficiez d'1 Go de stockage gratuit en ligne avec Voila  
http://macle.voila.fr


Reply via email to