XR806是否支持C++编译
-
请问,XR806是否支持C++编译?
-
如果你去看 官方教程 拉源码回来
xr806_openharmony/device/xradio/xr806/xr_skylark/src/cplusplus/ 看这个目录
cpp_init.c cpp_mem.cpp Makefile
当然你看编译环境 是有g++的
tools/gcc-arm-none-eabi-10-2020-q4-major/bin/
arm-none-eabi-ar arm-none-eabi-gdb-add-index
arm-none-eabi-as arm-none-eabi-gdb-add-index-py
arm-none-eabi-c++ arm-none-eabi-gdb-py
arm-none-eabi-c++filt arm-none-eabi-gprof
arm-none-eabi-cpp arm-none-eabi-ld
arm-none-eabi-elfedit arm-none-eabi-ld.bfd
arm-none-eabi-g++ arm-none-eabi-lto-dump
arm-none-eabi-gcc arm-none-eabi-nm
arm-none-eabi-gcc-10.2.1 arm-none-eabi-objcopy
arm-none-eabi-gcc-ar arm-none-eabi-objdump
arm-none-eabi-gcc-nm arm-none-eabi-ranlib
arm-none-eabi-gcc-ranlib arm-none-eabi-readelf
arm-none-eabi-gcov arm-none-eabi-size
arm-none-eabi-gcov-dump arm-none-eabi-strings
arm-none-eabi-gcov-tool arm-none-eabi-strip -
@hu_710774265您好,请问我应该怎么设置?我尝试了半天也没有编译成功
-
@haijun
libcplusplus.a[make@archlinux cplusplus]$ ls cpp_init.c cpp_init.o cpp_mem.d libcplusplus.a cpp_init.d cpp_mem.cpp cpp_mem.o Makefile [make@archlinux cplusplus]$
make menuconfig
[*] C++ support
所以是支持c++的
具体宏变量是 CONFIG_CPLUSPLUS 自己搜吧
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号