Exit Status 1

Hi everybody
I'm new to Arduino programming and need your help.
The attached sketch can not be compiled and stops with exit status 1
Can someone help to fix the sketch.
Thank you
danielmeidantoronto

ObstacleAvoidingRobot.ino (1.99 KB)

Can you please copy the complete error message and post it.

Do you have the AFMotor.h library installed?

Before you post again, you should read the three locked topics at the top of the forum. They provide instructions on how to post and they provide other rules of courtesy.

To post:

  1. Use CTRL-T in the Arduino IDE to autoformat your code.
  2. Paste the autoformatted code between code tags (the </> button)
    so that we can easily see and deal with your code.

The code that was improperly posted compiles for me (aside from the fact that I don't have the AFMotor.h library). There are some minor spelling errors in the quoted literals and in the comments but these do not affect the compilation.

Do you have the AFMotor.h library? Where is it installed? What version is your IDE? Exit status 1 tells us almost nothing. Please copy and paste the complete error message as cattledog requested. Use code tags.