[llvm-bugs] [Bug 34330] New: error: use of undeclared identifier 'isascii' while compiling strstream.cpp
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Aug 25 15:05:16 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=34330
Bug ID: 34330
Summary: error: use of undeclared identifier 'isascii' while
compiling strstream.cpp
Product: libc++
Version: 5.0
Hardware: PC
OS: other
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: Catherine_Moore at mentor.com
CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com
Created attachment 19043
--> https://bugs.llvm.org/attachment.cgi?id=19043&action=edit
Build log file with error messages
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<int>(__c)] & __m)
!=0 : false;
__locale: *__vec = isascii(*__low) ?
__tab_[static_cast<int>(*__low)] : 0;
__locale: if (isascii(*__low) && (__tab_[static_cast<int>(*__low)] &
__m))
__locale: if (!(isascii(*__low) && (__tab_[static_cast<int>(*__low)]
& __m)))
A definition of isascii can be found in newlib's ctype.h. What's the best way
to fix this?
Thanks,
Catherine
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170825/95b1e94e/attachment-0001.html>
More information about the llvm-bugs
mailing list