Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Syntax error

Syntax error

Scheduled Pinned Locked Moved C / C++ / MFC
helplinuxtutorial
12 Posts 4 Posters 0 Views 1 Watching
  • 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.
  • V Offline
    V Offline
    Vaclav_
    wrote on last edited by
    #1

    I need some hint how to identify / troubleshoot this syntax error. /home/vaclav/TEMPLATE_Cross_GCC_RPI: 1: /home/vaclav/TEMPLATE_Cross_GCC_RPI: Syntax error: "(" unexpected I get it when I specify "/home/vaclav/TEMPLATE_Cross_GCC_RPI" as "file path". The path is valid. Mrs Google suggested "linux bash error". I am lost. Amy help would be greatly appreciated. Cheers. Vaclav

    L L J 4 Replies Last reply
    0
    • V Vaclav_

      I need some hint how to identify / troubleshoot this syntax error. /home/vaclav/TEMPLATE_Cross_GCC_RPI: 1: /home/vaclav/TEMPLATE_Cross_GCC_RPI: Syntax error: "(" unexpected I get it when I specify "/home/vaclav/TEMPLATE_Cross_GCC_RPI" as "file path". The path is valid. Mrs Google suggested "linux bash error". I am lost. Amy help would be greatly appreciated. Cheers. Vaclav

      L Offline
      L Offline
      leon de boer
      wrote on last edited by
      #2

      Missing shebang line? #!/bin/bash

      In vino veritas

      V 1 Reply Last reply
      0
      • L leon de boer

        Missing shebang line? #!/bin/bash

        In vino veritas

        V Offline
        V Offline
        Vaclav_
        wrote on last edited by
        #3

        Nope, now It get invalid file. I get this error after I let Eclipse identify the file path by reading the remote (ARM) system. I think the combo box is looking for partial path. I do not have any means to really know what suppose be entered into the field. Let me find other IDE and put this on hold for now.

        1 Reply Last reply
        0
        • V Vaclav_

          I need some hint how to identify / troubleshoot this syntax error. /home/vaclav/TEMPLATE_Cross_GCC_RPI: 1: /home/vaclav/TEMPLATE_Cross_GCC_RPI: Syntax error: "(" unexpected I get it when I specify "/home/vaclav/TEMPLATE_Cross_GCC_RPI" as "file path". The path is valid. Mrs Google suggested "linux bash error". I am lost. Amy help would be greatly appreciated. Cheers. Vaclav

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Without seeing your code it's anyone's guess. Is this really a C/C++ issue?

          V 1 Reply Last reply
          0
          • L Lost User

            Without seeing your code it's anyone's guess. Is this really a C/C++ issue?

            V Offline
            V Offline
            Vaclav_
            wrote on last edited by
            #5

            You do not need my code, but I am willing to add to the OP whatever you need could help. It is simple "text" box where "(Remote ) file path " is entered. Such as "/this/that ". If I enter invalid path I get different error, so I know the path is valid. I really need to get the source code for this dialog to find out why simple text like that causes the funky error. Let me work on that.

            1 Reply Last reply
            0
            • V Vaclav_

              I need some hint how to identify / troubleshoot this syntax error. /home/vaclav/TEMPLATE_Cross_GCC_RPI: 1: /home/vaclav/TEMPLATE_Cross_GCC_RPI: Syntax error: "(" unexpected I get it when I specify "/home/vaclav/TEMPLATE_Cross_GCC_RPI" as "file path". The path is valid. Mrs Google suggested "linux bash error". I am lost. Amy help would be greatly appreciated. Cheers. Vaclav

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              Vaclav_Sal wrote:

              You do not need my code, but I am willing to add to the OP whatever you need could help. It is simple "text" box where "(Remote ) file path " is entered. Such as "/this/that ". If I enter invalid path I get different error, so I know the path is valid. I really need to get the source code for this dialog to find out why simple text like that causes the funky error. Let me work on that.

              Well, we still cannot guess what you are talking about, a C/C++ program, a bash script ... and exactly where does this error message occur?

              1 Reply Last reply
              0
              • V Vaclav_

                I need some hint how to identify / troubleshoot this syntax error. /home/vaclav/TEMPLATE_Cross_GCC_RPI: 1: /home/vaclav/TEMPLATE_Cross_GCC_RPI: Syntax error: "(" unexpected I get it when I specify "/home/vaclav/TEMPLATE_Cross_GCC_RPI" as "file path". The path is valid. Mrs Google suggested "linux bash error". I am lost. Amy help would be greatly appreciated. Cheers. Vaclav

                J Offline
                J Offline
                jschell
                wrote on last edited by
                #7

                Vaclav_Sal wrote:

                /home/vaclav/TEMPLATE_Cross_GCC_RPI: 1: /home/vaclav/TEMPLATE_Cross_GCC_RPI: Syntax error: "(" unexpected I get it when I specify "/home/vaclav/TEMPLATE_Cross_GCC_RPI"

                My guess is that you are guessing. You are making one or more assumptions that are incorrect. Some examples. 1. The path that you think you are using (in dialog) is not the one that you are actually putting there. 2. Your code is doing something with the path, from the dialog, and it is that path, not the one in the dialog, that has the problem. Solution. 1. Find the EXACT line where the error occurs. 2. BEFORE that line log/print the EXACT path that is being used. PUT delimiters around the value so you know exactly where it starts. Such as (pseudo) print '{' + val + '}'. Take care with 2 that you do not make assumptions. For example if you pass to parameters to the failing line the log/print both of them, do not concatenate.

                L 1 Reply Last reply
                0
                • J jschell

                  Vaclav_Sal wrote:

                  /home/vaclav/TEMPLATE_Cross_GCC_RPI: 1: /home/vaclav/TEMPLATE_Cross_GCC_RPI: Syntax error: "(" unexpected I get it when I specify "/home/vaclav/TEMPLATE_Cross_GCC_RPI"

                  My guess is that you are guessing. You are making one or more assumptions that are incorrect. Some examples. 1. The path that you think you are using (in dialog) is not the one that you are actually putting there. 2. Your code is doing something with the path, from the dialog, and it is that path, not the one in the dialog, that has the problem. Solution. 1. Find the EXACT line where the error occurs. 2. BEFORE that line log/print the EXACT path that is being used. PUT delimiters around the value so you know exactly where it starts. Such as (pseudo) print '{' + val + '}'. Take care with 2 that you do not make assumptions. For example if you pass to parameters to the failing line the log/print both of them, do not concatenate.

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #8

                  jschell wrote:

                  My guess is that you are guessing.

                  My guess is that you are exactly right. :thumbsup:

                  V 1 Reply Last reply
                  0
                  • L Lost User

                    jschell wrote:

                    My guess is that you are guessing.

                    My guess is that you are exactly right. :thumbsup:

                    V Offline
                    V Offline
                    Vaclav_
                    wrote on last edited by
                    #9

                    No more stupid , what else can I call it?, replies please. If you read the OP it is the VALID ENTRY to the options text box. Nothing to do with my code. If I knew WHERE TCF implements these options I would resolve this myself.Perhaps in my spare time I'll search git for it. I fail to see how I can describe the problem any differently. Let's just drop it. I am using different "Configuration", not TCF, to access the target and it works using SAME, EXACT option TEXT to specify the "remote" file path. Problem solved (?) Thanks

                    L J 2 Replies Last reply
                    0
                    • V Vaclav_

                      No more stupid , what else can I call it?, replies please. If you read the OP it is the VALID ENTRY to the options text box. Nothing to do with my code. If I knew WHERE TCF implements these options I would resolve this myself.Perhaps in my spare time I'll search git for it. I fail to see how I can describe the problem any differently. Let's just drop it. I am using different "Configuration", not TCF, to access the target and it works using SAME, EXACT option TEXT to specify the "remote" file path. Problem solved (?) Thanks

                      L Offline
                      L Offline
                      Lost User
                      wrote on last edited by
                      #10

                      Vaclav_Sal wrote:

                      If I knew WHERE TCF implements these options

                      And if you had mentioned TCF (whatever that is) in the first place you would most likely not have got what you call "stupid replies". Like so many questioners here, you provide only half the information and then blame us when you don't get the correct answer in return.

                      1 Reply Last reply
                      0
                      • V Vaclav_

                        No more stupid , what else can I call it?, replies please. If you read the OP it is the VALID ENTRY to the options text box. Nothing to do with my code. If I knew WHERE TCF implements these options I would resolve this myself.Perhaps in my spare time I'll search git for it. I fail to see how I can describe the problem any differently. Let's just drop it. I am using different "Configuration", not TCF, to access the target and it works using SAME, EXACT option TEXT to specify the "remote" file path. Problem solved (?) Thanks

                        J Offline
                        J Offline
                        jschell
                        wrote on last edited by
                        #11

                        As guess, from googling, "TCF" is an open source library that one can use. Because it is open source it can be modified. Otherwise, for this and other third party libraries, first and best source are the support forums for the library. Might also look through the bug reports for the library since it might be something that is already known.

                        V 1 Reply Last reply
                        0
                        • J jschell

                          As guess, from googling, "TCF" is an open source library that one can use. Because it is open source it can be modified. Otherwise, for this and other third party libraries, first and best source are the support forums for the library. Might also look through the bug reports for the library since it might be something that is already known.

                          V Offline
                          V Offline
                          Vaclav_
                          wrote on last edited by
                          #12

                          Call me dense - but I see this as OS error / verification error and I did my best to find what parameters are expected in the control. At one point Eclipse did confirm the "file" selected. Unfortunately this TCF is pretty much dead as far as any support from the original vendor. Please consider this matter closed.

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups