Declare in scope????

Hey guys i'm new to all of the coding stuff and i'm currently working on a project but i have hit a speed bump! i'm having trouble with compiling this fella it appears that there is only one thing wrong with it and it is this error (

error: 'stepper' was not declared in this scope
stepper.moveTo(-steps); ^
exit status 1
'stepper' was not declared in this scope

)
when i use what ever as variable except for void before 'stepper' the error is gone but not sure which one is correct so if you could help me to handle this i will appreciate it

Hello marabella12345
Welcome to the Arduino fora.
Before you do anything else please take a moment to read General guidance and
How to use this forum
Especially item #7 on posting code.
Without seeing your code how can we help? Our telepathy skills are not what they were!

You might also find this useful: Scope rules

If you post "this fella" for us to look at we would have a much better chance of helping you. Otherwise we're just guessing what's going on.

Steve

error: 'stepper' was not declared in this scope
stepper.moveTo(-steps);

What the compiler is saying to you is “hang on one cotten picking minuet you are asking me to use this variable but you have never told me what the heck it is. Come on now, how the f an I supposed to know this”.

Compilers have feelings too and like to be informed about anything new before dealing with them.

Likely causes are that you have not got the stepper library installed on your system.