ARM-software / LLVM-embedded-toolchain-for-Arm

A project dedicated to building LLVM toolchain for 32-bit Arm embedded targets.
Apache License 2.0
377 stars 85 forks source link

`fatal error: 'inttypes.h' file not found` when building a simple C++ program #426

Closed carlescufi closed 3 months ago

carlescufi commented 3 months ago

Using version 17.0.1, and compiling C programs works just fine. However, when trying to build a C++ program I get:

/Users/carles/bin/LLVMEmbeddedToolchainForArm-17.0.1-Darwin/lib/clang/17/include/inttypes.h:21:15: fatal error: 'inttypes.h' file not found
   21 | #include_next <inttypes.h>
      |               ^~~~~~~~~~~~
1 error generated.
carlescufi commented 3 months ago

I was using -nostdinc, hence the issue.