delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/02/22/09:04:32

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <49A15D7C.1060107@gmail.com>
Date: Sun, 22 Feb 2009 14:13:16 +0000
From: Dave Korn <dave DOT korn DOT cygwin AT googlemail DOT com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: gcc compile problem: error: stray \168 in program
References: <22145156 DOT post AT talk DOT nabble DOT com>
In-Reply-To: <22145156.post@talk.nabble.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

grip wrote:

> gcc test.c -o test. 
> 
> I  get  some strange errors which  goes like:
> 
> test.c: In function `main':
> test.c:5: error: stray '\168' in program
> test.c:5: error: `Test' undeclared (first use in this function)
> test.c:5: error: (Each undeclared identifier is reported only once
> test.c:5: error: for each function it appears in.)
> test.c:5: error: parse error before "this"
> test.c:5: error: stray '\168' in program
> 
> 
> Had this got something to do  with unrecognised double quotes?

  Yes.  "\168" is the "Diaeresis" mark, not any kind of quote at all.

> Can someone provide some  guidance on how to resolve this. 

  Don't use Microsoft Word to write C source files?  The real question is, how
did the file get to be that way in the first place?  Do you have an unusual
keyboard layout/mapping?

    cheers,
      DaveK


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019