[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: TRYING TO INSTALL REAP I GET THE FOLLOWING
From: |
Paul Smith |
Subject: |
Re: TRYING TO INSTALL REAP I GET THE FOLLOWING |
Date: |
Fri, 05 Jul 2013 13:32:07 -0400 |
On Fri, 2013-07-05 at 13:05 +0000, M.C. Medina Gomez wrote:
> /tmp/ccTpN0kH.o: In function `getkinship':
> REAP_SOURCE.c:(.text+0x3206): undefined reference to `sqrt'
> collect2: ld returned 1 exit status
> make: *** [REAP] Error 1
> Could you tell me what is wrong
This is not a bug in make; this error is being produced by the linker
and is a result of an incorrect command line, so your makefile is wrong.
If you're looking for help with writing makefiles it's best to ask on
the address@hidden mailing list.
In your case if you want to use the math library (which is where the
sqrt() function is provided) you need to add the "-lm" option to your
link line.
Since you don't provide any information about your makefile, we can't
provide more direct help than that.