Go Down

Topic: Compile error (Read 1 time) previous topic - next topic

Heru_Ur

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.
Where's my coffee?

Coding Badly

Does this directory exist...

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

Are there a bunch of EXEs in that directory?

Heru_Ur

Yes.  The folder exists and avr-g++.exe is there.
Where's my coffee?

Coding Badly

Any GNU software listed on your PATH environment variable?

Heru_Ur

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

Where's my coffee?

Coding Badly

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.

Heru_Ur

Ok.  The short answer is no.
Where's my coffee?

Heru_Ur

Only paths for matlab, mplab, and a few I don't recognize beginning with %SystemRoot%
Where's my coffee?

Coding Badly

Does your Arduino root directory contain spaces or special characters?

Heru_Ur

Nope.  That was the first thing I checked for.
Where's my coffee?

Coding Badly

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"


Heru_Ur

Does the same on mine.
avr-g++: no input files
Where's my coffee?

Heru_Ur

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

Coding Badly

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

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy