Re: using sin function from math lib

From: Jan Panteltje (pNaonStpealmtje_at_yahoo.com)
Date: 04/13/05

  • Next message: thecybershadow_at_gmail.com: "Re: How to output Unicode?"
    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)


  • Next message: thecybershadow_at_gmail.com: "Re: How to output Unicode?"

    Relevant Pages

    • using sin function from math lib
      ... 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 ... Do I have to link to some specific library with -L in gcc? ...
      (comp.os.linux.development.apps)
    • Re: Sin Function Data Analysis
      ... If you plot the data you will see a sine wave. ... I currently have a set of data for a pendelum, resembeling a sin function. ...
      (microsoft.public.excel.worksheet.functions)
    • Re: sample a sine wave with square wave
      ... You can create a sampled sine wave using the sin function (the result ... You can create a rectangular wave by using a ... hard limiter on a DC shifted sine wave. ...
      (comp.soft-sys.matlab)