Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    XR806是否支持C++编译

    Wireless & Analog Series
    2
    4
    1569
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      haijun LV 3 last edited by

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

      1 Reply Last reply Reply Quote Share 0
      • H
        HU_710774265 LV 4 last edited by

        如果你去看 官方教程 拉源码回来
        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 Reply Last reply Reply Quote Share 0
        • H
          haijun LV 3 @HU_710774265 last edited by

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

          H 1 Reply Last reply Reply Quote Share 0
          • H
            HU_710774265 LV 4 @haijun last edited by

            @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 Reply Last reply Reply Quote Share 0
            • 1 / 1
            • First post
              Last post

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

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