Chciałem się nauczyć jak tworzyć aplikacje portable,
więc zaczełem od nauki podstaw, linkowania statycznego
i tu mam problem
$ gcc -static -Wall -ansi -pedantic power.c -o powers -lm
/usr/bin/ld: cannot find -lm
/usr/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status
opierałem się na
http://home.agh.edu.pl/~gjn/dydaktyka/TechKomp/node14.html
jak wpisałem gcc --help to nawet opcji static nie widze.
Edytowane:
Instalowałem wszystko jak leciało,
natrafilem tez
http://stackoverflow.com/questions/7284009/cannot-find-lc-and-lm-in-g-linux
https://software.intel.com/en-us/articles/error-ld-cannot-find-lm
wiec zainstalowalem tez paczki glibc i pomogło,
to rozwiazuje moj problem.