导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页

    XR806是否支持C++编译

    Wireless & Analog Series
    2
    4
    1569
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • H
      haijun LV 3 最后由 编辑

      请问,XR806是否支持C++编译?

      1 条回复 最后回复 回复 引用 分享 0
      • H
        HU_710774265 LV 4 最后由 编辑

        如果你去看 官方教程 拉源码回来
        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

        H 1 条回复 最后回复 回复 引用 分享 0
        • H
          haijun LV 3 @HU_710774265 最后由 编辑

          @hu_710774265您好,请问我应该怎么设置?我尝试了半天也没有编译成功

          H 1 条回复 最后回复 回复 引用 分享 0
          • H
            HU_710774265 LV 4 @haijun 最后由 编辑

            @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 自己搜吧

            1 条回复 最后回复 回复 引用 分享 0
            • 1 / 1
            • First post
              Last post

            Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

            行为准则 | 用户协议 | 隐私权政策