Compiler cannot include C++ headers when both PICOLIBC and LIB_CPLUSPLUS options are set #52559
Labels
area: C++
area: picolibc
Picolibc C Standard Library
Enhancement
Changes/Updates/Additions to existing features
Describe the bug
When
CONFIG_PICOLIBC
andCONFIG_LIB_CPLUSPLUS
options are set at the same time then compiler is not able to include C++ headers i.e.cstdint
.When there is used
picolib
without enableing usage of C++ standard library then everything works well.After adding
CONFIG_LIB_CPLUSPLUS
standard C++ headers cannot be found (see log below).To Reproduce
Steps to reproduce the behavior:
Enable picolibc
Enable C++
Enable C++ standard library
Expected behavior
If C++ standard library cannot be used with picolib then this should be blocked at the kconfig level, otherwise compilation should succeed.
Impact
Showstopper for switching from newlib to picolib.
Logs and console output
Environment (please complete the following information):
Additional context
C++ related config:
The text was updated successfully, but these errors were encountered: