You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/02/18 20:10:04 UTC

[GitHub] [incubator-nuttx] jcursiolf edited a comment on issue #5530: libxx "C++ Example using CMake" guide "No thread API" error

jcursiolf edited a comment on issue #5530:
URL: https://github.com/apache/incubator-nuttx/issues/5530#issuecomment-1045112395


   Small update on this error:
   
   ```sh
   /path/to/hellocpp/nuttx-export-10.1.0/include/libcxx/__config:1142:6: error: #error "No thread API"
    1142 | #    error "No thread API"
         |      ^~~~~
   ```
   
   It is caused because there is no definition of `__NuttX__` whatsoever in any of the files created by `make export`. From the little I could find, it appears that it has been moved from the individual _Make.defs_ to _tools/Config.mk_ by #2192 . Inserting it back on the _Make.defs_ made no diference. 
   
   For the purpostes of getting rid of it, I have hardcoded the definition in the _HelloWord.h_ of said guide. But I am quite sure this is not how it is supposed to be done. So, if anyone has any input, specially considering updating the guide, it'd be highly appreciated.


-- 
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-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org