Compile error

When I try to compile a program, including an empty shell, I get the following error:

avr-g++: CreateProcess: No such file or directory

I've looked in other threads but none of the fixes I've found seem to apply.

I'm using Arduino-0022 on Windows 7 x64
The most common fix I found in the other threads was removing GCC_EXEC_PREFIX from the environment variables, but it is not there.

Any help is appreciated.

Does this directory exist…

{YourArduinoRoot}\arduino-0022\hardware\tools\avr\bin

Are there a bunch of EXEs in that directory?

Yes. The folder exists and avr-g++.exe is there.

Any GNU software listed on your PATH environment variable?

The PATH variable value reads as follows.

C:\Program Files (x86)\Microchip\mplabc30\v3.25\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\QuickTime\QTSystem;C:\Program Files\MATLAB\R2010a\runtime\win64;C:\Program Files\MATLAB\R2010a\bin;C:\Program Files (x86)\Microchip\MPLAB C32 Suite\bin

No matter how hard I stare at my screen, I just can't seem to see what's in those directories. Until my remote reading skills improve, you will have to make an effort.

Ok. The short answer is no.

Only paths for matlab, mplab, and a few I don't recognize beginning with %SystemRoot%

Does your Arduino root directory contain spaces or special characters?

Nope. That was the first thing I checked for.

Try this...

  • Open a command-shell
  • Navigate to "{YourArduinoRoot}\arduino-0022\hardware\tools\avr\bin"
  • Run "avr-g++.exe"

On my computer the output is...
"avr-g++.exe: no input files"

Does the same on mine.
avr-g++: no input files

Well, I don't know what the problem was, but it was corrected by re-downloading the IDE.

I'm glad to know you have it working and thank you for the follow-up.