[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Help installation REAP
From: |
M.C. Medina Gomez |
Subject: |
RE: Help installation REAP |
Date: |
Mon, 8 Jul 2013 13:02:00 +0000 |
Dear Paul thanks a lot for your help...
Unfortunatly my installation is not complete yet. Now wehn I try to create the
executable I get the following errors
REAP_SOURCE.c: In function âgetkinshipâ:
REAP_SOURCE.c:242:6: warning: ignoring return value of âfgetsâ, declared with
attribute warn_unused_result [-Wunused-result]
REAP_SOURCE.c:250:13: warning: ignoring return value of âfgetsâ, declared with
attribute warn_unused_result [-Wunused-result]
REAP_SOURCE.c:317:6: warning: ignoring return value of âfgetsâ, declared with
attribute warn_unused_result [-Wunused-result]
REAP_SOURCE.c:398:8: warning: ignoring return value of âfscanfâ, declared with
attribute warn_unused_result [-Wunused-result]
REAP_SOURCE.c:416:6: warning: ignoring return value of âfgetsâ, declared with
attribute warn_unused_result [-Wunused-result]
REAP_SOURCE.c:465:6: warning: ignoring return value of âfgetsâ, declared with
attribute warn_unused_result [-Wunused-result]
REAP_SOURCE.c:765:11: warning: ignoring return value of âfscanfâ, declared with
attribute warn_unused_result [-Wunused-result]
REAP_SOURCE.c:766:10: warning: ignoring return value of âfgetsâ, declared with
attribute warn_unused_result [-Wunused-result]
REAP_SOURCE.c:838:9: warning: ignoring return value of âfscanfâ, declared with
attribute warn_unused_result [-Wunused-result]
REAP_SOURCE.c:891:6: warning: ignoring return value of âfgetsâ, declared with
attribute warn_unused_result [-Wunused-result]
As a consequence when I try to use the program the command is not found.
Do you by any chance know what could it be wrong with it. Thanks a lot. Carolina
address@hidden:/home/549001/TestGenR/REAP$ REAP
-sh: REAP: command not found
M. Carolina Medina-Gomez, PhD Student
Erasmus MC, Na 2724
Dr. Molewaterplein 50 3015 GE
Rotterdam
e-mail: address@hidden
Phone no.: +31107044292
________________________________________
From: Paul Smith address@hidden
Sent: Monday, July 08, 2013 2:03 PM
To: M.C. Medina Gomez
Cc: address@hidden; J.R. Verburg
Subject: Re: Help installation REAP
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.