[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help installation REAP
From: |
Paul Smith |
Subject: |
Re: Help installation REAP |
Date: |
Mon, 08 Jul 2013 08:03:50 -0400 |
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.