[xubuntu-users] gcc compiler problem

Lutz Andersohn landersohn at gmail.com
Thu Jan 29 21:32:51 UTC 2015


you need to link with libmath. Pass -lm to gcc

On 01/29/2015 02:33 PM, Paul wrote:
> I need to use some math functions in a C program, specifically SQRT
> and SIN.  Is there a ?.h file that I can INCLUDE in the ?.c file?
>
> I have tried #include  <math.h>, this is the same as no #include at
> all.  I also tried #include <tgmath>, With this the messages change
> from unknown function to some nonsense about _EXTERNSION_.  Still no
> help.
>
> I get identical results with either the cc compiler or the gcc compiler.
>
> Paul Manos
>





More information about the xubuntu-users mailing list