Tim@Visual Micro wrote on Dec 3
rd, 2018 at 9:23pm:
I think I confused things with my response about the two tools>Options. you can only use one of them and for now use the "Build uses configuration"
After that make sure the \inc folder and containing files is included in your project. above the solution explorer is "show all files" which shows actual folder. make sure the src folder and all children are included in the project. if not right click and exclude then re-include the src folder which should go though and include all files or highlight CTRL+Select what you want to include.
I am sorry for the late reply. I had a busy week ... anyhow I tried now your suggestion.
In Tools > Options > Visual Micro I have now:
Build In Project Intermediate: False
Build Uses Configuration: True
In vMicro > Compiler
Deep Search for Libraries: Unselected
Verbose: Selected
I have noted that Excluding and Inlcuding folders takes quite some time and also produces high CPU load. After the exclude/inlcude cycle I checked if all the relevant files where without the red sign.
For safety measure I excluded the config folder containing example configuration files for each 3D printer vendor.
Never the less with this setup I get a path to long error at the linking step:
Linking it all together ...
# Coping cached core 26e3f2\core.a to a
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections,--relax -mmcu=atmega2560 -o in.ino.elf" in.cpp.o" core\serial.cpp.o"
... snip: bunch of *.cpp.o files see attached log ...
sd\usb_flashdrive\usb_host.cpp.o" .a" "-LC:\Users\Julian\AppData\Local\Temp\VMBuilds\Marlin\mega_atmega2560\Release" -lm
Der Dateiname oder die Erweiterung ist zu lang
Error linking for board Arduino/Genuino Mega w/ ATmega2560 (Mega 2560)
Build failed for project 'Marlin'
So I think there is no change so far. I got this result also before without including/ecluding folders.
Do you have any other suggestions?