problems on my first sketch, error compiling

Hi

New Arduino Micro all keen to learn. Read through all the Getting Started and introductory sketches. First one not working. this is the blink sketch

int led=13

void setup() {
// put your setup code here, to run once:
pinmode (led, output);
}

void loop() {
// put your main code here, to run repeatedly:

digitalwrite (led, high);
delay (2000);
digitalwrite (led, low);
delay (2000);

}

Arduino Micro is connected on COM 4. I am using Windows and have Arduino 1.6.5 software. I press the reset button before uploading as described. I have tried moving the pin to 8 with an external LED and resistor without change. The Micro has an on board LED that is blinking (flashes of three, different than the sketch) (one comment had that this would flash if no external led was connected)

Error message is

Arduino: 1.6.5 (Windows Vista), Board: "Arduino Micro"

Build options changed, rebuilding all

C:\Program Files\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_MICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8037 -DUSB_MANUFACTURER="Unknown" -DUSB_PRODUCT="Arduino Micro" -IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files\Arduino\hardware\arduino\avr\variants\micro C:\Users\HAL\AppData\Local\Temp\build4668779103545081303.tmp\sketch_jun19a.cpp -o C:\Users\HAL\AppData\Local\Temp\build4668779103545081303.tmp\sketch_jun19a.cpp.o

avr-g++: error: CreateProcess: No such file or directory
Error compiling.

And just starting out so I have no idea what this means. Can anyone help?
Thanks
Andrew

Please use the [code ] tags next time (<> in the menu). Please update your post.

But this can't possibly be the code that made the error. Why?

  1. The first line is missing the ;
  2. output, high and low does not work. You need to write OUTPUT, HIGH or LOW

So if you want some answers you have to post what you do, not kind of what you do.

I have said before that I am a beginner this is my first sketch. You are wrong but you have made some positive corrections. This is the code that I am using that has made the error. I have added the semicolon and capitalized the words OUTPUT, HIGH and LOW. It is still not working, the error message has not changed.

I do not understand what you are saying about what code tags.

Andrew

C is case sensitive too "pinMode" and "digitalWrite"

Thanks. I have found File/examples/01.basics/Blink and used the given code.
Still get the same error message.
How can I have an error message when I am using the basic example code?

Here is what you want:

int led=13;     // added a semicolon

void setup() {
  // put your setup code here, to run once:
pinMode (led, OUTPUT);      // changed pinmode to pinMode, changed output to OUTPUT
}

void loop() {
  // put your main code here, to run repeatedly:

digitalWrite (led, HIGH);     // changed digitalwrite to digitalWrite, changed high to HIGH
delay (2000);
digitalWrite (led, LOW);      // changed digitalwrite to digitalWrite, changed low to LOW
delay (2000);

}

Then maybe check:
http://forum.arduino.cc/index.php/topic,48557.0.html

Ok, the problem cannot be the code. I have tried CWashburn's code, and the example codes and still get the same problem.

The device manager is recognizing the Arduino Micro. It easily updated the drivers from Arduino file. It is showing up on COM7 in device manager and Arduino software. So the link is working.

It's a new Arduino Micro from a reputable supplier so I have no reason to think the board is broken.

My computer is not filled with viruses or anything like that. It's a few years old but I have done a system restore (every year I do one to avoid anything the virus protection missed). Computer should be fine. Septillion, thanks for the link. I did not understand all of that Cygbin stuff, but it seemed to suggest an edit on the Autoexec Bat file. I avoid that sort of thing as one can easily cause a lot of problems that way. It also does not seem likely that a default setting would prevent Arduino use or there would be more of these problems.

This is really not making sense.
Andrew

I should probably add that my version was 1.6.4, but it shouldn't make a difference. I don't consider myself an expert, but you might try re-downloading it and completely starting over (you will want to save all of your sketches to a different file before you do this).

Open CMD and run
%GCC_EXEC_PREFIX%

It should not return anything.

Tried CMD
Tried reloading and starting over
Tried using a different computer

Nothing different
Andrew

The only thing I can think of is that the Arduino 1.6.x IDE is in beta and could have bugs.