compile error
Roger Oberholtzer
roger at opq.se
Sun Nov 30 23:55:52 PST 2008
On Sun, 2008-11-30 at 11:57 -0500, David A. Bandel wrote:
> Folks,
>
> Not sure how to resolve this. I picked up the C source and am trying
> to compile. At first I got some errors -- resolved them by including
> the tgmath.h file in a couple of .c files. Now I get this:
>
> 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
OPQ Systems / Ramböll RST
Ramböll Sverige AB
Krukmakargatan 21
P.O. Box 17009
SE-104 62 Stockholm, Sweden
Office: Int +46 8-615 60 20
Mobile: Int +46 70-815 1696
--
"On two occasions I have been asked (by members of Parliament!),
'Pray, Mr. Babbage, if you put into the machine wrong figures,
will the right answers come out?' I am not able rightly to apprehend
the kind of confusion of ideas that could provoke such a question.
- Charles Babbage 1791-1871)
English computer pioneer, philosopher
And remember:
It is RSofT and there is always something under construction.
It is like talking about a large city with all construction finished.
Not impossible, but very unlikely.
More information about the Linux-users
mailing list