compile error
Steve Jardine
sjardine at acm.org
Wed Dec 10 23:36:42 PST 2008
Dave,
Did you get this resolved? Sorry, been looking for employment and have been ultra busy..
Steve
> > david at tole:~/new/novas-c201$ gcc checkout-st.c novas.c novascon.c
> > solsys3.c readeph0.c -o checkout
> > solsys3.c: In function 'solarsystem':
> > solsys3.c:144: error: called object 'sinl' is not a function
> > solsys3.c:145: error: called object 'cosl' is not a function
> > solsys3.c:215: error: called object 'sinl' is not a function
> > solsys3.c:216: error: called object 'cosl' is not a function
>
> Add -lm to your command line. It is the math library.
>
> >
> > OK, I believe sinl is not a function, but how do I resolve this?
>
> sinl is indeed a function. Still, be sure you have
>
> #include <math.h>
>
> in your source file.
>
> 'man sinl' is your friend :)
>
> >
> > TIA,
> >
> > David A. Bandel
> --
> Roger Oberholtzer
<snip>
More information about the Linux-users
mailing list