-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: use of undeclared identifier 'isascii' while compiling strstream.cpp #33678
Comments
assigned to @mclow |
This is odd. <__locale> includes (line 20), which includes <ctype.h> (line 39) So you should be getting the definition of isascii. Can you run the compile line again, removing the -c and using '-E' instead? |
newlib's ctype.h #if (__MISC_VISIBLE || __XSI_VISIBLE) && !defined _AEABI_PORTABLE I don't know whether libcxx's use of isascii ought to be changed or if my defines wrt to newlib are incorrect. Do you know? Thanks, |
No; I don't know. I suspect that you should define __MISC_VISIBLE to 1. |
Do you have an update on this? |
No, I don't have an update and I'm not currently tracking this problem. I will close it out and resubmit if we encounter in the future. Thanks, |
Extended Description
I'm running into a problem building libcxx in conjunction with newlib. The attached log file contains the error messages.
^
The problem appears to be that isascii is referenced in __locale, but the include file cctype doesn't contain a definition.
__locale: return isascii(__c) ? (_tab[static_cast(__c)] & __m) !=0 : false;
__locale: __vec = isascii(__low) ? _tab[static_cast(__low)] : 0;
__locale: if (isascii(__low) && (_tab[static_cast(__low)] & __m))
__locale: if (!(isascii(__low) && (_tab[static_cast(*__low)] & __m)))
A definition of isascii can be found in newlib's ctype.h. What's the best way to fix this?
Thanks,
Catherine
The text was updated successfully, but these errors were encountered: