sin-function from math.h not available
From: Matthias Pfeifer (pfemat_at_web.de)
Date: 07/31/04
- Next message: Alex Fraser: "Re: sin-function from math.h not available"
- Previous message: Dag Viken: "Re: Newbie Question: using Switch and Printf"
- Next in thread: Alex Fraser: "Re: sin-function from math.h not available"
- Reply: Alex Fraser: "Re: sin-function from math.h not available"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 31 Jul 2004 21:05:07 +0200
hi group,
i realy wonder if there is a sin(double) function defined in math.h since
i have problems compiling the following small programm:
/* sinus.c example code */
#include<math.h>
int main(int argc, char* argv[])
{
sin(1.2);
return 0;
}
compiler is gcc-Version 3.3.4 (Debian 1:3.3.4-3) and compilation gives:
matthias@euler:~/src$ gcc -o sinus sinus.c
/tmp/ccqsY2qP.o(.text+0x1a): In function `main':
: undefined reference to `sin'
collect2: ld returned 1 exit status
thank you all.
-- Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/m2/
- Next message: Alex Fraser: "Re: sin-function from math.h not available"
- Previous message: Dag Viken: "Re: Newbie Question: using Switch and Printf"
- Next in thread: Alex Fraser: "Re: sin-function from math.h not available"
- Reply: Alex Fraser: "Re: sin-function from math.h not available"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|