X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=AWL,BAYES_00,MISSING_HEADERS,RCVD_IN_JMF_BR,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Date: Sun, 22 Feb 2009 12:43:56 -0600 (CST) From: tmcd AT panix DOT com cc: cygwin AT cygwin DOT com Subject: Re: gcc compile problem: error: stray \168 in program In-Reply-To: <49A15D7C.1060107@gmail.com> Message-ID: References: <22145156 DOT post AT talk DOT nabble DOT com> <49A15D7C DOT 1060107 AT gmail DOT com> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Sun, 22 Feb 2009, Dave Korn wrote: > 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. Yabbut \nnn should represent an octal escape (right?), but 8 is not an octal digit. 168 decimal is indeed umlaut (octal 250, hex A8). > > 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? In particular, what about the quotation marks? Are they Microsoft so-called "smart quotes", octal 223 = decimal 147 = hex 93 for open curly double quotes and all those plus 1 for closing? I'd try going into a non-word processor program, like vi or maybe Notepad, delete the double-quotes, retype them, and see if the result shows on the screen as vertical or identical quotation marks. -- I have to admit that that doesn't fit the "stray \168" error message, so it's a long shot, but at least it's quick and harmless to try it. -- Tim McDaniel; Reply-To: tmcd AT panix DOT com -- 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/