main.c:1: error: stray ´\357´ in program ... ??

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
_.-noel-._
Posts: 49
Joined: Mon Aug 13, 2007 12:57 am

main.c:1: error: stray ´\357´ in program ... ??

Post by _.-noel-._ »

Hey ho....

i have a new problem....
main.c:1: error: stray ´\357´ in program
main.c:1: error: stray ´\273´ in program
main.c:1: error: stray ´\277´ in program
i have no idea what this means....

plZ help....

this comes at compilling...
Sry for my english
kuroneko
Posts: 24
Joined: Thu Dec 08, 2005 11:32 am
Location: Chigasaki, Japan

Re: main.c:1: error: stray ´\357´ in program ... ??

Post by kuroneko »

Looks like a character encoding signature to me (0xEF, 0xBB, 0xBF). Just load your file into a very basic editor (preferably one which only knows ASCII), remove the garbage at the beginning of the file (main.c:1:) and try again. Then make sure your editor of choice doesn't save in some funny encoding (e.g. unicode).

HTH
Post Reply