ts-7000
[Top] [All Lists]

Re: [ts-7000] newbe question

To:
Subject: Re: [ts-7000] newbe question
From: Tom McCarty <>
Date: Sun, 24 Dec 2006 18:49:30 -0800
David,

Are you sure it's compiled?  I get that error when I chmod +x button.c,
and then try to execute it.
You can "cat" it, or check the file length per below (where a.out is the
compiled version of the sample program):

$ ls -l
-rwxr-xr-x    1 root     root        12846 Dec 25 02:47 a.out
-rw-------    1 root     root         1556 Dec 22 23:20 button.c
$

If it's a text file, but marked as executable, ash will try to execute
it as a shell script, hence the syntax error with unbalanced parenthesis.


    Tom

davidalgeo wrote:

> It may be a newbe question but how do you get a Syntax error running
> a compiled program. This is the sample button program off the CD
> without any changes. i get this error on everthing even the simple
> 'hello world'.
>
> -rwxrwxrwx 1 david david 5297 Dec 24 19:48 button
> $ ./button
> ./button: 1: Syntax error: "(" unexpected
>
>  




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU