Ordering dependency between string.h and strings.h.
Khem Raj
kraj at mvista.com
Fri Dec 22 20:32:47 UTC 2006
Rob Landley wrote:
> With the december 14 nightly snapshot, building under gcc 4.1.1, if I do:
>
> #include <string.h>
> #include <strings.h>
>
> I don't get a prototype for index() or rindex(). But if I do:
>
> #include <strings.h>
> #include <string.h>
>
> I get both prototypes. Why does it matter what order they're in?
>
> Rob
>
Are you using SUSV3_LEGACY. I think if you can post your preprocessed
files for both cases it will help to find out the reason and also post
your .config file.
use -E -dD options to preprocess.
Thanks
Khem
More information about the uClibc
mailing list