Yes, there is a reason. It has something to do with your code. What is anyone's guess but as of right now you are the only one who can see the code so you are the only one with any hope of spotting the problem.
If I had to guess I would guess that you failed to include the Servo library.
If I had to guess I would guess that you failed to include the Servo library.
Technically, that should be "the Servo header file". The Servo library consists of a header file and source file. Only the header file needs to be #included. The source file will be compiled separately.
I think from now on when posters leave off their code I'm just going to reply with "Works for me" and let them guess at how their code may be different from mine.
I think from now on when posters leave off their code I'm just going to reply with "Works for me" and let them guess at how their code may be different from mine.