From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3551 invoked by alias); 7 Sep 2003 11:24:27 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 3540 invoked from network); 7 Sep 2003 11:24:26 -0000 Received: from unknown (HELO mail.gmx.net) (213.165.64.20) by sources.redhat.com with SMTP; 7 Sep 2003 11:24:26 -0000 Received: (qmail 7882 invoked by uid 65534); 7 Sep 2003 11:24:25 -0000 Received: from pD9588495.dip.t-dialin.net (EHLO computer) (217.88.132.149) by mail.gmx.net (mp027) with SMTP; 07 Sep 2003 13:24:25 +0200 From: Hartmut Welpmann To: Gerry Reno Cc: cygwin@cygwin.com Subject: Re: gcc simple program crashing Date: Sun, 07 Sep 2003 11:24:00 -0000 Message-ID: <8r4mlvoqkr1k19fofvhkrlmfvrcnjm43tr@4ax.com> References: <20030907080017.29863.qmail@web14410.mail.yahoo.com> In-Reply-To: <20030907080017.29863.qmail@web14410.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2003-09/txt/msg00468.txt.bz2 On Sun, 7 Sep 2003 01:00:17 -0700 (PDT), you wrote: > I wrote, compiled and ran a very simple program today that is >producing the weirdest results. I began googling the errors and came >across multiple accounts of people experiencing the exact same >behavior. The program is just a simple dos/unix line termination >converter: > >#include > >int main (int argc, char *argv[]) >{ > int ch; > while ( (ch = getc(stdin)) && ! feof(stdin) ) { > if (ch == '\n') { > putc('\n',stdout); > putc('\r',stdout); > } else putc(ch,stdout); > } >} > >gcc -o filter.exe -c filter.c > >The errors: >./filter.exe 8: Syntax error: EOF in backquote substitution [...] >Anyone know what is causing this behavior? You try to execute an object file, just remove the -c switch. >Another poster with this >problem was using g++ (GCC) 3.1.1 20020718 (prerelease): >http://www.cygwin.com/ml/cygwin/2002-07/msg01598.html If you had read the whole thread, you might have found the answer yourself... Regards, Hartmut -- Hartmut Welpmann -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/