error: stray '357' in program. Huh?

I try to compile my sketch and get
error: stray '357' in program
error: stray '273' in program
error: stray '277' in program
on line 1. There's nothing on line 1!

2 Likes

pblase:
I try to compile my sketch and get

What sketch?

Probably, there is an error somewhere in your sketch. (The error won't necessarily be at line 1.) Alternatively, your Arduino IDE may have become corrupted. Can you compile the standard examples?

1 Like

Those errors means there's a "special" character in the program; often a unicode character with no representation (so it looks like a space). Try going to the lines it mentions and deleting and re-typing the spaces (indentation)

This typically happens with code cut and pasted from a web site. Is that where your code came from? If so, go back to that site, right click, and select View Page Source (or whatever your browser uses to let you see the page as text), and copy the code from that page, instead.

just clear the extra spaces in the sketch

i can't able to solve the error...can any one please help

We can help.

Hi,
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Thanks.. Tom.. :confused:

UMAKANTHREDDY:
i can't able to solve the error...can any one please help

Yes.

But we know nothing about your sketch, circuit, or other aspects of your project. Unless you enlighten us by showing us all the relevant information, all you are gonna get are these semi-serious to totally facetious explanations.

Start by showing your code!

copy your code in a text editor that does not support unicode (plain text) then copy it back to your IDE window. that round trip will have removed the crappy invisible characters

1 Like

u used none English ";" instead of a semicolon at the end of your line.

1 Like