Re: help for math fuctions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sunday 25 February 2007 16:11, Tim Prince wrote:
> Walter Kasberg wrote:
> > In 'atm.c' i have defined
> > #include<math.h>
> >
> > My makefile is:
> > -------------------------
> > OBJ = tatm.o atm.o
> >
> > ..f.o:
> >         gcc -c  $<
> >
> >
> > tatm : $(OBJ)
> >         gcc $(OBJ) -o tatm
> > ---------------------------------
> > if I try 'make' compiling works but from linker I get the message:
> >
> > 'atm.c:(.text+0xf5): undefined reference to `pow'
> > collect2: ld returned 1 exit status
> > make: *** [tatm] Fehler 1'
> >
> > What could be wrong or missing?
>
> -lm
thanks, that's it.
Walter

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux