martes, 30 de septiembre de 2008

Math.h Ubuntu Gcc

Well, I don't know if in other linux distribution happen something like this, but in ubuntu you need put the option "-lm" to use the math.h library.

gcc source.c -o output.o -lm

Bueno. No se si en alguna otra distribución de linux pasa algo como esto, pero en ubuntu, necesitas poner la opcion "-lm" para poder usar la biblioteca "math.h"

No hay comentarios: