On Mon, 8 Jun 1998, Bernd Antweiler wrote:
> Hello all together!
> 
> I am programming in C under Linux with Gnu-C-Compiler and xwpe frontend (X-
> desktop). My program is nearly finished, everything has worked fine until yet. Now I 
> have tried to use some mathematical functions like pow(x,y), sin(x), etc.. 
> #include <math.h> at the top of the C-file let me compile the file, but on starting 
>or 
> debugging the project an "undefined reference"-error appears. Only the fabs(x) -
> order of this library seems to work! 
> I find the <math.h> file in the /usr/include directory and this directory is 
>declared 
> under compiler options and the project options, too. 
> Is there any idea to solve the problem? I use the Suse-distribution and my Linux 
> knowledge is not so good, because it was not needed by this comfortably 
> distribution.
> Maybe a file is lost? Which file? 

have U linked the library ?

-lm

ciaoz
--
Morelli 'ZioBudda' Davide Michel - Member of Pluto Linux User Group
[EMAIL PROTECTED] - http://www.dau.ing.univaq.it/~ziobudda/
Linux Problem? Ask to [EMAIL PROTECTED]
"/dev/ziobudda: access to /var/tmp/beer denied, use /var/adm/pineapple"

Reply via email to