Hello Xiang,
Em ter., 16 de mar. de 2021 às 14:01, Xiang Xiao
<[email protected]> escreveu:
>
> On Tu
> >
> This project use the modern C++ feature, so you must enable llvm
> ibc++(CONFIG_LIBCXX=y)
I tried a new build, executing:
$ make distclean
$ ./tools/configure.sh -l stm32f4discovery:testlibcxx
$ make
I can see the library being downloaded from git, but it is not compiling.
In file included from /home/ubuntu/nuttx_ws/nuttx/include/libcxx/random:1637,
from libcxx/src/random.cpp:16:
/home/ubuntu/nuttx_ws/nuttx/include/libcxx/cmath: At global scope:
/home/ubuntu/nuttx_ws/nuttx/include/libcxx/cmath:321:9: error:
'::signbit' has not been declared
321 | using ::signbit;
| ^~~~~~~
/home/ubuntu/nuttx_ws/nuttx/include/libcxx/cmath:322:9: error:
'::fpclassify' has not been declared
322 | using ::fpclassify;
| ^~~~~~~~~~
/home/ubuntu/nuttx_ws/nuttx/include/libcxx/cmath:326:9: error:
'::isnormal' has not been declared
326 | using ::isnormal;
| ^~~~~~~~
/home/ubuntu/nuttx_ws/nuttx/include/libcxx/cmath:327:9: error:
'::isgreater' has not been declared
327 | using ::isgreater;
How should I solve this issue?
> >
> You need tell compiler stop to search the toolchain provided c++ library
> by -nostdinc++
>
I believe it will solve my cmake issue.
Best regards,
Flavio