What I'm doing wrong or why is it not working:

#define Uin A0;

void setup() {

void loop() {

Results in a Error (expected ')' before ; token.

I thought #define just exists as a place holder.

1 Answer 1


Because you have a ; at the end of your #define.

#define Uin A0;



The Arduino website mentions this in their reference. For more in-depth detail about the C pre-processor you can read the (rather large) manual here.

  • That's it. Thank you. Could you please link to the reference. (It is also answered there - I'm sorry) [In 5 min I can accept the answer] link
    – TimK
    May 15, 2017 at 12:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.