This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc compile problem: error: stray \168 in program


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]