Re: using sin function from math lib
From: Jan Panteltje (pNaonStpealmtje_at_yahoo.com)
Date: 04/13/05
- Previous message: Tauno Voipio: "Re: using sin function from math lib"
- In reply to: hschauhan: "using sin function from math lib"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 13 Apr 2005 18:29:56 GMT
On a sunny day (13 Apr 2005 10:58:47 -0700) it happened "hschauhan"
<hs.chauhan@gmail.com> wrote in
<1113415126.891166.304270@f14g2000cwb.googlegroups.com>:
>Hello all!
>
>I am trying to generate a sine wave in my program for which I am using
>sin function. I include the math.h but the linker refuses to link
>saying undefined symbol "sin".
>
>Do I have to link to some specific library with -L in gcc?
>
>Thanks in advance.
Use : -lm
(libmath)
- Previous message: Tauno Voipio: "Re: using sin function from math lib"
- In reply to: hschauhan: "using sin function from math lib"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|