"The filename or extension is too long" when compiling Marlin

Hey guys,

I'm fairly new to Arduino, I tried uploading my files but I had this error:
In file included from C:\Users\gukes\OneDrive\Documents\Marlin-2.0.x\Marlin\Marlin.ino:14:0:
C:\Program Files (x86)\Arduino\libraries\Bridge\src/YunServer.h:24:2: warning: #warning "The use of YunServer is deprecated. Use BridgeServer instead!" [-Wcpp]
#warning "The use of YunServer is deprecated. Use BridgeServer instead!"
^~~~~~~
fork/exec C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc.exe: The filename or extension is too long.
Error compiling for board Arduino Mega or Mega 2560.

trying to understand the error

@guk123

TOPIC SPLIT
PLEASE DO NOT HIJACK / NECRO POST !

Could you take a few moments to Learn How To Use The Forum.

Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum in the future.

This error is caused by the hundreds of files of the Marlin sketch causing the compilation command to exceed the maximum 32k command line length on Windows.

The Arduino developers have made a fix for that, but there hasn't been a release of the Arduino IDE since that time. You can get the fix by using the nightly build of the Arduino IDE. You can download it here:

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.