Problem when compiling

Craig Rodrigues rodrigc@attbi.com
Tue Feb 26 09:44:00 GMT 2002


On Tue, Feb 26, 2002 at 04:56:59PM +0000, samir idrissi wrote:
> 
> 
> #include <math.h>
> 
> Iget this message
> /tmp/cc4REunT.o(.text+0x2ac): undefined reference to `pow'
> collect2: ld returned 1 exit status

Add -lm to link in the math library.

-- 
Craig Rodrigues        
http://www.gis.net/~craigr    
rodrigc@attbi.com



More information about the Gcc mailing list