Navigation

    全志在线开发者论坛

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

    大家在板子上运行编译好的hello_world,遇到无法运行的情况吗

    MR Series
    2
    5
    1675
    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.
    • C
      chen_bopk LV 3 last edited by

      ./hello_word: relocation error: ./hello_word: symbol __libc_start_main version GLIBC_2.29 not defined in file libc.so.6 with link time reference
      1.png

      1 Reply Last reply Reply Quote Share 0
      • YuzukiTsuru
        柚木 鉉 LV 9 last edited by

        使用bsp里提供的工具链,在prebuilt/gcc/linux-x86/riscv/toolchain-thead-glibc/riscv64-glibc-gcc-thead_20200702/bin/riscv64-unknown-linux-gnu-gcc

        也可以用其他工具链加上 -static 静态链接应用程序。

        C 1 Reply Last reply Reply Quote Share 0
        • C
          chen_bopk LV 3 @YuzukiTsuru last edited by

          @yuzukitsuru 我就按照这个官方帖子上的方法,就是这个工具链,

          YuzukiTsuru 1 Reply Last reply Reply Quote Share 0
          • YuzukiTsuru
            柚木 鉉 LV 9 @chen_bopk last edited by

            @chen_bopk 工具链加上 -static 静态链接应用程序。

            C 1 Reply Last reply Reply Quote Share 0
            • C
              chen_bopk LV 3 @YuzukiTsuru last edited by

              @yuzukitsuru 谢谢大佬,可以了

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

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

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