Yo tengo el mismo problema, con un programa sencillo, por ejemplo

#include <stdio.h>
#include <math.h>
int main()
{
        double a, b=1;
        a=sqrt(b);
        return 0;
}

Cuando construyo

gcc 'glibc-config --cflags' -Wall -g 'glib-config --libs' "prueba.c" -o
"prueba"

/tmp/cc5hC67C.o: En la funcion 'main':
/home/bennett/Anjuta/prueba.c:7:referencia a 'sqrt' sin definir
collect2:ld returned 1 exit status

Te envio esto porque no he entendido muy bien lo de la opcion -l,
�podr�as especificar como usarla en concreto en este caso?, venga,
gracias


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Responder a