On Mon, 2013-07-08 at 06:35 +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
> 
> Please find attached my make file.
> 
> Could you please guide me which changes have to be made in order to
> complete the installation succesfully.

Libraries should always come at the END of the link line; the
command-line switches to the compiler, unlike most typical UNIX
commands, are very order-dependent.

Change your command:

>     $(COMPILER) $(CC_LIB) $(OPTIONS) REAP_SOURCE.c -o REAP

to:

    $(COMPILER) $(OPTIONS) REAP_SOURCE.c -o REAP $(CC_LIB)

and it should work better.



_______________________________________________
Help-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to