[vox-tech] math.h advice?

Alexandra Thorn vox-tech@lists.lugod.org
Mon, 8 Jul 2002 18:42:39 -0700 (PDT)


Mike,

Thanks for your suggestion.  Now just to confirm that I understand you,
are you saying that I just just add the option -lm at the end of the
compile command line line?

Thanks again,
Alex

On Mon, 8 Jul 2002 msimons@moria.simons-clan.com wrote:

>   Add "-lm" to your gcc link line... that asks gcc to link in the math
> library.  "-l" says link in the following library "m" is the name of the
> math library.
>
>   So "gcc -o run_me infile.c -lm" should produce a run_me...
>
>   If not please paste the error messages you see.
>
>     Good Luck,
>       Mike
> _______________________________________________