Error message on arduino uno 1.8.0 when compiling code

I'm using the 1.8.0 version of Arduino Uno on Windows and I tried uploading the Blink example to my board.

  Blink
  Turns on an LED on for one second, then off for one second, repeatedly.
 
  This example code is in the public domain.
 */
 
// Pin 13 has an LED connected on most Arduino boards.
// Pin 11 has the LED on Teensy 2.0
// Pin 6  has the LED on Teensy++ 2.0
// Pin 13 has the LED on Teensy 3.0
// give it a name:
int led = 13;

// the setup routine runs once when you press reset:
void setup() {                
  // initialize the digital pin as an output.
  pinMode(led, OUTPUT);     
}

// the loop routine runs over and over again forever:
void loop() {
  digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(100);               // wait for a second
  digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
  delay(100);               // wait for a second
}

However, the upload didn't work; at the last section, it starts compiling libraries but then it crashes and an error message appears.

Compiling libraries...
Compiling core...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc" -c -g -x assembler-with-cpp -flto -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10800 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\wiring_pulse.S" -o "C:\Users\Max\AppData\Local\Temp\arduino_build_554141\core\wiring_pulse.S.o"
avr-gcc: error: CreateProcess: No such file or directory

exit status 1
Error compiling for board Arduino/Genuino Uno.

I originally had the 1.6.8 version and the upload/compiling also didn't work so I tried uninstalling it and reinstalled the 1.8.0 version and it still doesn't work. The thing is, I can upload and compile sketches using Teensyduino (for a Flybrix drone). Anyone have any ideas how to fix this? Thanks.

Try commenting out the following:

 Blink
  Turns on an LED on for one second, then off for one second, repeatedly.
 
  This example code is in the public domain.

All you need to do is simply add "//", therefore it will then look like

//Blink
  //Turns on an LED on for one second, then off for one second, repeatedly.
 
  //This example code is in the public domain.
 //*/
 
// Pin 13 has an LED connected on most Arduino boards.
// Pin 11 has the LED on Teensy 2.0
// Pin 6  has the LED on Teensy++ 2.0
// Pin 13 has the LED on Teensy 3.0
// give it a name:
int led = 13;

// the setup routine runs once when you press reset:
void setup() {               
  // initialize the digital pin as an output.
  pinMode(led, OUTPUT);     
}

// the loop routine runs over and over again forever:
void loop() {
  digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(100);               // wait for a second
  digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
  delay(100);               // wait for a second
}




However, the upload didn't work; at the last section, it starts compiling libraries but then it crashes and an error message appears.

The reason being is that if you don't comment that part the program will think it is part of your code. However, it is some extra information you are providing about what you are doing.

Also if you want it to blink for one second put 1000 in the brackets because it is measured in milliseconds.

Hope that helps!

Also try checking out the Arduino tutorials for a blinking LED by visiting https://www.arduino.cc/en/Tutorial/Blink.

I got it to work when I switched to the admin account on my computer. I had been using another user previously.

Hello erveyone,today i bought the robot arm-add on for the robot starter kit.

I created a progam but it doesn’t work.

My code:

#include <Makeblock.h>
#include <Arduino.h>
#include <SoftwareSerial.h>
#include <Wire.h>

MeDCMotor MotorL(M1);
MeDCMotor MotorR(M2);
MeDCMotor Holder(PORT_1);
MeDCMotor Hand(PORT_2);
MeInfraredReceiver infraredReceiverDecode(PORT_5);

int HolderSpeed = 250;
int HandSpeed = 250;
int moveSpeed = 190;
boolean leftflag,rightflag;
int minSpeed = 55;
int factor = 23;

void setup()
{
infraredReceiverDecode.begin();
}

void loop()
{
if(infraredReceiverDecode.available()||infraredReceiverDecode.buttonState())
{
switch(infraredReceiverDecode.read())
{
case IR_BUTTON_PLUS:
Forward();
break;
case IR_BUTTON_MINUS:
Backward();
break;
case IR_BUTTON_NEXT:
TurnRight();
break;
case IR_BUTTON_PREVIOUS:
TurnLeft();
break;
case IR_BUTTON_9:
ChangeSpeed(factor9+minSpeed);
break;
case IR_BUTTON_8:
ChangeSpeed(factor
8+minSpeed);
break;
case IR_BUTTON_7:
ChangeSpeed(factor7+minSpeed);
break;
case IR_BUTTON_6:
ChangeSpeed(factor
6+minSpeed);
break;
case IR_BUTTON_5:
ChangeSpeed(factor5+minSpeed);
break;
case IR_BUTTON_4:
ChangeSpeed(factor
4+minSpeed);
break;
case IR_BUTTON_3:
ChangeSpeed(factor3+minSpeed);
break;
case IR_BUTTON_2:
ChangeSpeed(factor
2+minSpeed);
break;
case IR_BUTTON_1:
ChangeSpeed(factor*1+minSpeed);
break;
case IR_BUTTON_A:
Holder_up();
break;
case IR_BUTTON_D:
Holder_down();
break;
case IR_BUTTON_C:
Hand_close();
break;
case IR_BUTTON_E:
Hand_open();
break;
}
}
else
{
Stop();
}
}

void Forward()
{
MotorL.run(moveSpeed);
MotorR.run(moveSpeed);
}
void Backward()
{
MotorL.run(-moveSpeed);
MotorR.run(-moveSpeed);
}
void TurnLeft()
{
MotorL.run(-moveSpeed);
MotorR.run(moveSpeed);
}
void TurnRight()
{
MotorL.run(moveSpeed);
MotorR.run(-moveSpeed);
}
void Stop()
{
MotorL.run(0);
MotorR.run(0);
Holder.run(0);
Hand.run(0);
}
void ChangeSpeed(int spd)
{
moveSpeed = spd;
}
void Holder_up()
{
Holder.run(HolderSpeed);
}
void Holder_down()
{
Holder.run(-HolderSpeed);
}
void Hand_close()
{
Hand.run(HandSpeed);
}
void Hand_open()
{
Hand.run(-HandSpeed);
}

Error message:

C:\Users\IT-me\AppData\Local\Temp\arduino_modified_sketch_940588\sketch_mar29b.ino:17:23: fatal error: Makeblock.h: No such file or directory

#include <Makeblock.h>

^

compilation terminated.

exit status 1
error compiling the Arduino/Genuino Uno board.

Could anyone help me?

Thanks already!