Thread: stray errors

  1. #1
    Registered User
    Join Date
    Jul 2011

    Post stray errors

    why is a stray error caused?
    how to rectify a stray error in a c progam?
    Last edited by Salem; 07-13-2011 at 10:18 AM. Reason: Remove font colour and size abuse - it does nothing if you make the whole text the same

  2. #2
    Registered User
    Join Date
    May 2011
    Around 8.3 light-minutes from the Sun
    Just don't feed them, everyone knows if you feed strays - even a little - they will keep coming back......
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  3. #3
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    You should probably actually include the entire error message. It probably says something like "stray character '»' encountered" (for some value of »); and that just means that you have a character in your source code file that doesn't belong.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    We most often see this when you blindly copy/paste code from some website or other place.
    Especially when they've overdone the pretty-printing, for example turning " into ʺ to make it look 'better'
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. What does: 'error: stray ‘\357’ in program' mean?
    By Phanixis in forum Linux Programming
    Replies: 8
    Last Post: 12-04-2010, 01:48 AM
  2. stray '@' in program
    By hilbert16 in forum C++ Programming
    Replies: 2
    Last Post: 10-05-2010, 06:21 AM
  3. stray characters...
    By vapanchamukhi in forum C Programming
    Replies: 3
    Last Post: 09-22-2008, 04:43 AM
  4. Stray \127? Waaaaaaaaa?
    By Terran in forum C++ Programming
    Replies: 4
    Last Post: 07-07-2008, 02:13 AM
  5. stray '\223' in program... Help
    By reRanger in forum C++ Programming
    Replies: 3
    Last Post: 11-23-2004, 02:45 AM