Paul Smith schrieb am 08.07.2013 um 08:03 (-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
> 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. See here for an example explaining the issue: Linker order - GCC - Stack Overflow http://stackoverflow.com/a/6717376 Also check the answers on that page by Johannes Schaub and casualcoder. Michael _______________________________________________ Help-make mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-make
