This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: gcc compile problem: error: stray \168 in program
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: cygwin at cygwin dot com
- Date: Sun, 22 Feb 2009 14:13:16 +0000
- Subject: Re: gcc compile problem: error: stray \168 in program
- References: <22145156.post@talk.nabble.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/