ts-7000
[Top] [All Lists]

Re: [ts-7000] newbe question

To:
Subject: Re: [ts-7000] newbe question
From: David <>
Date: Mon, 25 Dec 2006 14:49:13 -0600
thanks tom,  
it ended up being a path problem. it did not find the arm gcc and default  linux gcc.
i am surprised it even compiled at all.
David
Tom McCarty wrote:

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
>
>


-- 
David..........
You have been on the computer to long when,
You start tilting your head sideways to smile :-) 
__._,_.___


SPONSORED LINKS
Single board computer Hardware Computer running slow
Linux os Single board

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___
<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