leducp commented on issue #16775: URL: https://github.com/apache/nuttx/issues/16775#issuecomment-3160066327
For the record, quick and dirty workaround for the undefined __xpg_error_r symbol: ```cpp #include <string.h> extern "C" char * __xpg_strerror_r(int errnum, char * buf, size_t buflen) { (void) strerror_r(errnum, buf, buflen); return buf; } ``` You can put this anywhere in your C++ code, or without the extern "C" in a C file. Note that this is an improper wrapper: the GNU version of strerror_r (which __xpg_error_r is the underlying implementation) is a bit different of the XSI version provided by NuttX. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org