![]() |
what does this error mean ?
hello all ,
I am new to C programming and trying to learn by working some online tutorials. I am working on a linux OS ( Ubuntu ) . so the program is to calculate a table of sine values and I typed in the code pretty much the way it was show in the tutorial, the code is shown below: Code:
/* Written: Winter 1995 */$ gcc program_name.c I get the following error : /tmp/cciKZE0g.o: In function `main': sine.c:(.text+0x58): undefined reference to `sin' collect2: ld returned 1 exit status what does this mean ?? what should I do ? can any one help ? thanks , raurava |
Re: what does this error mean ?
|
Re: what does this error mean ?
Have proper code blocks when you post code snippets in the posts.
|
Re: what does this error mean ?
In C, which you are using, sin takes a double as an argument, not a float. Use sinf for floats. In C++, the functions are overloaded, so will work. Refer to your documentation for the functions you use.
|
| All times are GMT +5.5. The time now is 10:24. |