Navigation

    全志在线开发者论坛

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

    新人D1-h hello-word 运行不起来求教

    MR Series
    6
    8
    2316
    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.
    • X
      xunheng LV 3 last edited by xiaowenge

      出现了如图的情况
      c4c99940-295c-4033-b7f0-ed49473c8ab8-image.png

      运行./hello_word后显示./hello_word: line 1: syntax error: unexpected "("

      编译感觉也没什么问题
      0be41514-88dc-444b-b1e0-0a16bd64d965-image.png

      求大佬指导

      1 Reply Last reply Reply Quote Share 0
      • xiaowenge
        DOT小文哥 LV 8 last edited by

        常见段错误。。。你可能要贴一下hello world代码。。。

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

          helloworld要在板子上运行,编译要加上-static flag

          X 1 Reply Last reply Reply Quote Share 0
          • X
            xunheng LV 3 @xiaowenge last edited by

            @xiaowenge 48a34b34-5d78-4115-b8a0-27cc8760ffc2-image.png

            代码看上去……没问题欸?

            1 Reply Last reply Reply Quote Share 0
            • X
              xunheng LV 3 @YuzukiTsuru last edited by

              @yuzukitsuru 在 新人D1-h hello-word 运行不起来求教 中说:

              helloworld要在板子上运行

              用adb devices看上去板子是连接到电脑上去了呀

              183f2569-4963-4d19-b1f0-499565b92c4a-image.png

              1 Reply Last reply Reply Quote Share 0
              • B
                bjxx159 LV 2 last edited by

                编译工具链与系统编译的工具链不匹配

                DAIZEBIN 1 Reply Last reply Reply Quote Share 0
                • DAIZEBIN
                  DAIZEBIN LV 7 @bjxx159 last edited by

                  @bjxx159 感觉得重新指定hello world的交叉编译工具链试试,前面没有看到编译的实际过程,不好下判断

                  1 Reply Last reply Reply Quote Share 0
                  • BedRock
                    BedRock LV 6 last edited by

                    这个编译链与跟文件系统编译链不匹配唉,重新制定下Tina的编译链试试?
                    我还是贴出来把:看文档:https://d1.docs.aw-ol.com/study/study_6helloword/
                    20455136-d673-43e3-9b8a-2bcacc15bafc-image.png

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

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

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