This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem when compiling


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]