Find the answer to your Linux question:
Results 1 to 3 of 3
hi , i compiled a simple hello.c program using the cross compiler powerpc-440-linux-gnu-gcc " + the options " -mpowerpc -gdwarf-2" + file name "hello.c" and there is no error while ...
  1. #1
    Just Joined!
    Join Date
    Nov 2008
    Posts
    11

    syntax error message while running

    hi ,
    i compiled a simple hello.c program using the cross compiler powerpc-440-linux-gnu-gcc " + the options " -mpowerpc -gdwarf-2" + file name "hello.c"
    and there is no error while compiling.

    After that i copied the exe file to powerpc linux and i tried to run that file. its giving " Syntax error: "(" unexpected " as error message.

    if anybody knows how to solve this problem, please let me know.

  2. #2
    Just Joined!
    Join Date
    Feb 2009
    Posts
    45
    Quote Originally Posted by vijuvince
    hi ,
    i compiled a simple hello.c program using the cross compiler powerpc-440-linux-gnu-gcc " + the options " -mpowerpc -gdwarf-2" + file name "hello.c"
    and there is no error while compiling.
    I assume the file “hello.c” harbours a simple «Hello World» program. Is that correct?

    Quote Originally Posted by vijuvince
    After that i copied the exe file to powerpc linux and i tried to run that file. its giving " Syntax error: "(" unexpected " as error message.
    Unless someone who possesses the special knowledge required here comes along and offers assistance, could you provide the audience with the output of the following 2 commands, which are to be executed on the powerpc machine?
    Code:
    $> strace hello;
    $> ltrace hello;

  3. #3
    Just Joined!
    Join Date
    Nov 2008
    Posts
    11
    those starce and ltrace command are not available in sequoia linux
    so how to find out the error in exe file

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...