From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Dennis J. Sylvester" To: help-gcc@gnu.org Subject: math.h Date: Tue, 19 Oct 1999 21:55:00 -0000 Message-id: <380D58F1.B400EF83@primenet.com> X-SW-Source: 1999-10/msg00323.html I tried using the sqrt() function with gcc and get an error : undefined reference to 'sqrt'. If I compile with g++ I have no problem. I get the same result when trying to use pow() also. What am I missing? Any help would be appreciated. Dennis From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Dennis J. Sylvester" To: help-gcc@gnu.org Subject: math.h Date: Sun, 31 Oct 1999 13:57:00 -0000 Message-ID: <380D58F1.B400EF83@primenet.com> X-SW-Source: 1999-10n/msg00323.html Message-ID: <19991031135700.mShs47zhZHiKJ5W2ElLczlXKTuFiM3RRmF1N7wO_M1s@z> I tried using the sqrt() function with gcc and get an error : undefined reference to 'sqrt'. If I compile with g++ I have no problem. I get the same result when trying to use pow() also. What am I missing? Any help would be appreciated. Dennis