Closed Sayter99 closed 6 months ago
Made it work by commenting out -nostdinc
in config.bzl
I had this issue as well with a library including <algorithm>
. @hexdae would you accept a PR that removes that flag or makes it configurable? I'm a bit out of my depth on the pros/cons of having it
Yes we can remove it, but in most embedded environment there are some standard functions like malloc that require standard library implementations.
In general making it opt in might be the easier choice for C++
Hi there,
I am trying to include c++ header in a target using
arm-none-eabi-g++
, however, while build the target, the compiler shows an error regardingstdlib.h
not found.I tried to dig it a little bit and feel the problem might be the implementation detail
#include_next "stdlib.h"
that has assumptions to system include paths(?), but I had no idea how to fix it. If anyone has an idea, please help me out. Thanks in advance!To reproduce the error:
test.cpp
Log