compiler question

D. Peter Siddons siddons at bnl.gov
Thu Dec 2 21:56:43 UTC 2004


Thanks, Kate. So are the newlibs used for the rtems website binaries 
always compiled with --strict-ansi ? Or was I just unlucky to choose the 
one which was?
Pete.


Kate Feng wrote:

>"D. Peter Siddons" wrote:
>
>  
>
>>Hi Ralf,
>>  I was using 3.2.3 binaries from the OAR site. I ran into a problem
>>with that when I found that the 'strtok_r' function was not present in
>>its newlib.
>>    
>>
>
>Please see  the patch for the newlib/libc/include/string.h  below.
>You can just  take strtok_r out of the #ifndef
>
>Regards,
>
>
>Index: newlib/libc/include/string.h
>
>diff -c -u string.h.orig string.h
>
>--- string.h.orig Wed Apr  7 15:51:41 2004
>+++ string.h Fri Jun  4 11:22:53 2004
>@@ -45,9 +45,9 @@
> #endif
>
> size_t  _EXFUN(strxfrm,(char *, const char *, size_t));
>+char  *_EXFUN(strtok_r,(char *, const char *, char **));
>
> #ifndef __STRICT_ANSI__
>-char  *_EXFUN(strtok_r,(char *, const char *, char **));
>
> int  _EXFUN(bcmp,(const void *, const void *, size_t));
> void  _EXFUN(bcopy,(const void *, void *, size_t));
>
>
>  
>



More information about the users mailing list