Utilizar la librería math.h en gcc

4 views
Skip to first unread message

Bernyx

unread,
Dec 26, 2008, 10:22:25 PM12/26/08
to Bernyx
Para utilizar las funciones definidas en la libreria math.h en Linux,
se debe suminstrar el parámetro -lm al enlazador.

Por ejemplo:

$ gcc -lm potencias.c -o pot
Reply all
Reply to author
Forward
0 new messages