gcc compile problem: error: stray \168 in program

Tim McDaniel tmcd@panix.com
Tue Feb 24 17:27:00 GMT 2009


On Tue, 24 Feb 2009, grip <Chandramohan.USecure@gmail.com> wrote:
> 2. Output from od- tx1 -a test.c
>
> ---------------------BEGIN-------------------------------
> 0000000 23 69 6e 63 6c 75 64 65 20 3c 73 74 64 69 6f 2e
>          #  i  n  c  l  u  d  e sp  <  s  t  d  i  o  .
> 0000020 68 3e 0a 0a 69 6e 74 20 6d 61 69 6e 28 29 0a 20
>          h  > nl nl  i  n  t sp  m  a  i  n  (  ) nl sp
> 0000040 7b 0a 70 72 69 6e 74 66 28 a8 54 65 73 74 20 74
>          { nl  p  r  i  n  t  f  (  (  T  e  s  t sp  t
> 0000060 68 69 73 a8 29 3b 0a 72 65 74 75 72 6e 28 30 29
>          h  i  s  (  )  ; nl  r  e  t  u  r  n  (  0  )
> 0000100 3b 0a 20 7d 0a
>          ; nl sp  } nl
> 0000105
> ---------------------END-------------------------------

THank you for providing that.  I've deleted spaces so that the text
representations line up under the hex representations (why od doesn't
do that I don't know; nor do I know how to make od do that).

They really ARE umlauts in Latin-1, hex a8 shown above.  Why any other
program displays them as double quotes is beyond me: od apparently
strips the high bit to display them (0xa8 becomes 0x28, which is "(");
DOS codepage 437 would show an inverted question mark.

Anyway, go into your editor, delete the "quotation marks" that are
around the string, and retype them with the " key that's probably next
to Enter on your keyboard.  Then re-do od as above to make sure that
they show up as ", hex code 22, instead of a8 or anything else.

-- 
Tim McDaniel, tmcd@panix.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/



More information about the Cygwin mailing list