Navigation

    全志在线开发者论坛

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

    编译 device/xradio/xr806/xr_skylark/project/example会有undefined reference to

    Wireless & Analog Series
    2
    3
    1486
    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.
    • A
      allzhi LV 3 last edited by

      af3142a9-0a19-4c92-ba77-9ad01353ea49-image.png

      库为libxr_wifi_adapter.a,libhal_file_static.a

      看到有一个解决方式:【FAQ】全志XR806芯片 如何解决编译错误undefined reference to?

      但看到了xr_skylark目录下的,ohos.mk中,已经添加了-Wl,–start-group和-Wl,–end-group
      bc10c86d-f438-4e21-8820-afe490eb571f-image.png

      使用nm命令查看,库里也是有相应的函数的。

      iysheng 1 Reply Last reply Reply Quote Share 0
      • iysheng
        iysheng LV 5 @allzhi last edited by

        @allzhi 看一下你的 device/xradio/xr806/xr_skylark/project/linker_script/gcc/appos.ld 文件有没有包含这个两个 .a 库文件,如果没有,添加一下再试试呢。

        A 1 Reply Last reply Reply Quote Share 0
        • A
          allzhi LV 3 @iysheng last edited by

          @iysheng 这个文件中,是有libxr_wifi_adapter的,但没有libhal_file_static.a
          但添加后,编译结果中,也是有很多的undefined reference to

          1 Reply Last reply Reply Quote Share 0
          • 1 / 1
          • First post
            Last post

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

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