Mario Torre wrote:
> 
> gcc -o t1 -g -Wall -O2  t1.c
> t1.c: In function `main':
> t1.c:25: warning: implicit declaration of function `strlen'
> t1.c:27: warning: implicit declaration of function `strcpy'

why -g and -O2 ?
optomized with debug info doesn't make much sense.

> There is not the inclusion for the string.h or the strlib.h, so that warning
> would be normal if the stdio.h avoid to include these libraries, but this is
> not the case.

stdio.h does not include string.h or stdlib.h
I've never seen strlib.h before.

> The strange thing is when I call gcc to compile only the t1.c program (as if
> I want ot compile only it, and not the whole library).

Strange. did you use the same switches for the compiler?

        -Thomas



_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

Reply via email to