Arduino project no longer links

Help please.

I'm an engineer not programmer so somewhat out of my comfort zone, I'm okay with writing simple C code and Arduino like C stuff. The program I'm struggling with is about 5000 lines was working fine and then stopped compiling.

Several Arduino projects that were working fine in the past no longer compile and link. I don't think I changed anything other than possibly updating Win7. The last time I actively worked on this was several months ago. The program I'm focusing on runs on a custom board that is similar to a MKRZERO with a SAMD21G18

The error message I get is as follows .....

Using library Adafruit_ILI9341 at version 1.5.10 in folder: C:\Users\EP-JRS\Documents\Arduino\libraries\Adafruit_ILI9341 exit status 1 Error compiling for board EPE066.

In an attempt to get a handle on the problem I tried the following:

  1. tried compiling the most basic blink program ....... that works
  2. back to the original problem program I tried commenting things out to determine what is causing the compiler/linker to choke. In the end I had everything commented out and the one line that triggers the error is the include statement #include "Adafruit_ILI9341.h"

With that line in I get the error and with it commented out it compiles and links.

I don't recall doing anything with this library in the past few months.

Taking a look at the version of this library it appears to be 1.0.11 and most of the files are dated 2018 except the library.properties file that is dated 1979. 2018 makes sense to me because that seems like about the time I started using that library for multiple projects.

One odd thing I noticed is that the Adafruit_ILI9341 library folder was dated June3-2021, which seems odd as the files are mostly dated 2018. It's possible I messed with this library back then however I don't recall doing so and the file dates show 2018 so I'm not sure what to make of that, just trying to provide all possible relevant info.

I tried updating to newer versions of the ILI9341 library for example 1.5.10, same result.

I should note that I also tried updating Arduino IDE (manually) yesterday from version 1.8.5 to 1.8.15, I did this by creating a new Arduino folder and unzipping the latest IDE there so I could maintain the original IDE, this made no apparent difference.

I'm not sure what else to try???

if the code shows

#include "Adafruit_ILI9341.h"

do you have a copy of the library within your working directory?

if there is no local copy in your sketch's directory and if you can compile and link without that include it means you don't use that library... So just get rid of it...

The non commented out code uses that library.

I missed that point

Did you try compiling any example from Adafruit_ILI9341/examples at master · adafruit/Adafruit_ILI9341 · GitHub

I just tried compiling with the graphictest example, with the board selected as MKRZERO and I get the same failed compile result, see attached text from compile window:

Arduino: 1.8.5 (Windows 7), Board: "Arduino MKRZERO"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\EP-JRS\AppData

\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\EP-JRS\AppData

\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\EP-JRS\Documents\Arduino\libraries -fqbn=arduino:samd:mkrzero -

ide-version=10805 -build-path C:\Users\EP-JRS\AppData\Local\Temp\arduino_build_142356 -warnings=more -prefs=build.warn_data_percentage=75 -

prefs=runtime.tools.openocd.path=C:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.9.0-arduino6-static -prefs=runtime.tools.bossac.path=C:

\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0 -prefs=runtime.tools.arduinoOTA.path=C:\Users\EP-JRS\AppData\Local\Arduino15\packages

\arduino\tools\arduinoOTA\1.2.0 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-

2014q1 -prefs=runtime.tools.CMSIS.path=C:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.CMSIS-Atmel.path=C:\Users

\EP-JRS\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.1.0 -verbose C:\Users\EP-JRS\Documents\Arduino\libraries\Adafruit_ILI9341\examples

\graphicstest\graphicstest.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\EP-JRS\AppData\Local

\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\EP-JRS\AppData\Local

\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\EP-JRS\Documents\Arduino\libraries -fqbn=arduino:samd:mkrzero -ide-

version=10805 -build-path C:\Users\EP-JRS\AppData\Local\Temp\arduino_build_142356 -warnings=more -prefs=build.warn_data_percentage=75 -

prefs=runtime.tools.openocd.path=C:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.9.0-arduino6-static -prefs=runtime.tools.bossac.path=C:

\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0 -prefs=runtime.tools.arduinoOTA.path=C:\Users\EP-JRS\AppData\Local\Arduino15\packages

\arduino\tools\arduinoOTA\1.2.0 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-

2014q1 -prefs=runtime.tools.CMSIS.path=C:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.CMSIS-Atmel.path=C:\Users

\EP-JRS\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.1.0 -verbose C:\Users\EP-JRS\Documents\Arduino\libraries\Adafruit_ILI9341\examples

\graphicstest\graphicstest.ino
Using board 'mkrzero' from platform in folder: C:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.20
Using core 'arduino' from platform in folder: C:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.20
Build options changed, rebuilding all
Detecting libraries used...
"C:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -

std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions  -w -x c++ -E -CC -

DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_SAMD_MKRZERO -DARDUINO_ARCH_SAMD  -DUSE_ARDUINO_MKR_PIN_LAYOUT -D__SAMD21G18A__ -

DUSB_VID=0x2341 -DUSB_PID=0x804f -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino MKRZero"' "-IC:\Users\EP-JRS\AppData

\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel

\1.1.0/CMSIS/Device/ATMEL/" "-IC:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.20\cores\arduino" "-IC:\Users\EP-JRS\AppData\Local

\Arduino15\packages\arduino\hardware\samd\1.6.20\variants\mkrzero" "C:\Users\EP-JRS\AppData\Local\Temp\arduino_build_142356\sketch\graphicstest.ino.cpp" -o "nul"
"C:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -

std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions  -w -x c++ -E -CC -

DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_SAMD_MKRZERO -DARDUINO_ARCH_SAMD  -DUSE_ARDUINO_MKR_PIN_LAYOUT -D__SAMD21G18A__ -

DUSB_VID=0x2341 -DUSB_PID=0x804f -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino MKRZero"' "-IC:\Users\EP-JRS\AppData

\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel

\1.1.0/CMSIS/Device/ATMEL/" "-IC:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.20\cores\arduino" "-IC:\Users\EP-JRS\AppData\Local

\Arduino15\packages\arduino\hardware\samd\1.6.20\variants\mkrzero" "-IC:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.20\libraries\SPI" 

"C:\Users\EP-JRS\AppData\Local\Temp\arduino_build_142356\sketch\graphicstest.ino.cpp" -o "nul"
"C:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -

std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions  -w -x c++ -E -CC -

DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_SAMD_MKRZERO -DARDUINO_ARCH_SAMD  -DUSE_ARDUINO_MKR_PIN_LAYOUT -D__SAMD21G18A__ -

DUSB_VID=0x2341 -DUSB_PID=0x804f -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino MKRZero"' "-IC:\Users\EP-JRS\AppData

\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel

\1.1.0/CMSIS/Device/ATMEL/" "-IC:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.20\cores\arduino" "-IC:\Users\EP-JRS\AppData\Local

\Arduino15\packages\arduino\hardware\samd\1.6.20\variants\mkrzero" "-IC:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.20\libraries\SPI" 

"-IC:\Users\EP-JRS\Documents\Arduino\libraries\Adafruit_GFX_Library" "C:\Users\EP-JRS\AppData\Local\Temp\arduino_build_142356\sketch\graphicstest.ino.cpp" -o "nul"
"C:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -

std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions  -w -x c++ -E -CC -

DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_SAMD_MKRZERO -DARDUINO_ARCH_SAMD  -DUSE_ARDUINO_MKR_PIN_LAYOUT -D__SAMD21G18A__ -

DUSB_VID=0x2341 -DUSB_PID=0x804f -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino MKRZero"' "-IC:\Users\EP-JRS\AppData

\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel

\1.1.0/CMSIS/Device/ATMEL/" "-IC:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.20\cores\arduino" "-IC:\Users\EP-JRS\AppData\Local

\Arduino15\packages\arduino\hardware\samd\1.6.20\variants\mkrzero" "-IC:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.20\libraries\SPI" 

"-IC:\Users\EP-JRS\Documents\Arduino\libraries\Adafruit_GFX_Library" "-IC:\Users\EP-JRS\Documents\Arduino\libraries\Adafruit_ILI9341" "C:\Users\EP-JRS\AppData

\Local\Temp\arduino_build_142356\sketch\graphicstest.ino.cpp" -o "nul"
"C:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -

std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions  -w -x c++ -E -CC -

DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_SAMD_MKRZERO -DARDUINO_ARCH_SAMD  -DUSE_ARDUINO_MKR_PIN_LAYOUT -D__SAMD21G18A__ -

DUSB_VID=0x2341 -DUSB_PID=0x804f -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino MKRZero"' "-IC:\Users\EP-JRS\AppData

\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel

\1.1.0/CMSIS/Device/ATMEL/" "-IC:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.20\cores\arduino" "-IC:\Users\EP-JRS\AppData\Local

\Arduino15\packages\arduino\hardware\samd\1.6.20\variants\mkrzero" "-IC:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.20\libraries\SPI" 

"-IC:\Users\EP-JRS\Documents\Arduino\libraries\Adafruit_GFX_Library" "-IC:\Users\EP-JRS\Documents\Arduino\libraries\Adafruit_ILI9341" "C:\Users\EP-JRS\AppData

\Local\Arduino15\packages\arduino\hardware\samd\1.6.20\libraries\SPI\SPI.cpp" -o "nul"
"C:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -

std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions  -w -x c++ -E -CC -

DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_SAMD_MKRZERO -DARDUINO_ARCH_SAMD  -DUSE_ARDUINO_MKR_PIN_LAYOUT -D__SAMD21G18A__ -

DUSB_VID=0x2341 -DUSB_PID=0x804f -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino MKRZero"' "-IC:\Users\EP-JRS\AppData

\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel

\1.1.0/CMSIS/Device/ATMEL/" "-IC:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.20\cores\arduino" "-IC:\Users\EP-JRS\AppData\Local

\Arduino15\packages\arduino\hardware\samd\1.6.20\variants\mkrzero" "-IC:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.20\libraries\SPI" 

"-IC:\Users\EP-JRS\Documents\Arduino\libraries\Adafruit_GFX_Library" "-IC:\Users\EP-JRS\Documents\Arduino\libraries\Adafruit_ILI9341" "C:\Users\EP-JRS\Documents

\Arduino\libraries\Adafruit_GFX_Library\Adafruit_GFX.cpp" -o "nul"
"C:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -

std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions  -w -x c++ -E -CC -

DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_SAMD_MKRZERO -DARDUINO_ARCH_SAMD  -DUSE_ARDUINO_MKR_PIN_LAYOUT -D__SAMD21G18A__ -

DUSB_VID=0x2341 -DUSB_PID=0x804f -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino MKRZero"' "-IC:\Users\EP-JRS\AppData

\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel

\1.1.0/CMSIS/Device/ATMEL/" "-IC:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.20\cores\arduino" "-IC:\Users\EP-JRS\AppData\Local

\Arduino15\packages\arduino\hardware\samd\1.6.20\variants\mkrzero" "-IC:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.20\libraries\SPI" 

"-IC:\Users\EP-JRS\Documents\Arduino\libraries\Adafruit_GFX_Library" "-IC:\Users\EP-JRS\Documents\Arduino\libraries\Adafruit_ILI9341" "C:\Users\EP-JRS\Documents

\Arduino\libraries\Adafruit_GFX_Library\Adafruit_SPITFT.cpp" -o "nul"
"C:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -

std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions  -w -x c++ -E -CC -

DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_SAMD_MKRZERO -DARDUINO_ARCH_SAMD  -DUSE_ARDUINO_MKR_PIN_LAYOUT -D__SAMD21G18A__ -

DUSB_VID=0x2341 -DUSB_PID=0x804f -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino MKRZero"' "-IC:\Users\EP-JRS\AppData

\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel

\1.1.0/CMSIS/Device/ATMEL/" "-IC:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.20\cores\arduino" "-IC:\Users\EP-JRS\AppData\Local

\Arduino15\packages\arduino\hardware\samd\1.6.20\variants\mkrzero" "-IC:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.20\libraries\SPI" 

"-IC:\Users\EP-JRS\Documents\Arduino\libraries\Adafruit_GFX_Library" "-IC:\Users\EP-JRS\Documents\Arduino\libraries\Adafruit_ILI9341" "C:\Users\EP-JRS\Documents

\Arduino\libraries\Adafruit_GFX_Library\glcdfont.c" -o "nul"
"C:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -

std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions  -w -x c++ -E -CC -

DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_SAMD_MKRZERO -DARDUINO_ARCH_SAMD  -DUSE_ARDUINO_MKR_PIN_LAYOUT -D__SAMD21G18A__ -

DUSB_VID=0x2341 -DUSB_PID=0x804f -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino MKRZero"' "-IC:\Users\EP-JRS\AppData

\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel

\1.1.0/CMSIS/Device/ATMEL/" "-IC:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.20\cores\arduino" "-IC:\Users\EP-JRS\AppData\Local

\Arduino15\packages\arduino\hardware\samd\1.6.20\variants\mkrzero" "-IC:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.20\libraries\SPI" 

"-IC:\Users\EP-JRS\Documents\Arduino\libraries\Adafruit_GFX_Library" "-IC:\Users\EP-JRS\Documents\Arduino\libraries\Adafruit_ILI9341" "C:\Users\EP-JRS\Documents

\Arduino\libraries\Adafruit_ILI9341\Adafruit_ILI9341.cpp" -o "nul"
Generating function prototypes...
"C:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -

std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions  -w -x c++ -E -CC -

DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_SAMD_MKRZERO -DARDUINO_ARCH_SAMD  -DUSE_ARDUINO_MKR_PIN_LAYOUT -D__SAMD21G18A__ -

DUSB_VID=0x2341 -DUSB_PID=0x804f -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino MKRZero"' "-IC:\Users\EP-JRS\AppData

\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel

\1.1.0/CMSIS/Device/ATMEL/" "-IC:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.20\cores\arduino" "-IC:\Users\EP-JRS\AppData\Local

\Arduino15\packages\arduino\hardware\samd\1.6.20\variants\mkrzero" "-IC:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.20\libraries\SPI" 

"-IC:\Users\EP-JRS\Documents\Arduino\libraries\Adafruit_GFX_Library" "-IC:\Users\EP-JRS\Documents\Arduino\libraries\Adafruit_ILI9341" "C:\Users\EP-JRS\AppData

\Local\Temp\arduino_build_142356\sketch\graphicstest.ino.cpp" -o "C:\Users\EP-JRS\AppData\Local\Temp\arduino_build_142356\preproc

\ctags_target_for_gcc_minus_e.cpp"
"C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\EP-JRS

\AppData\Local\Temp\arduino_build_142356\preproc\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -Wall 

-std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -

DARDUINO=10805 -DARDUINO_SAMD_MKRZERO -DARDUINO_ARCH_SAMD  -DUSE_ARDUINO_MKR_PIN_LAYOUT -D__SAMD21G18A__ -DUSB_VID=0x2341 -

DUSB_PID=0x804f -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino MKRZero"' "-IC:\Users\EP-JRS\AppData\Local

\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel

\1.1.0/CMSIS/Device/ATMEL/" "-IC:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.20\cores\arduino" "-IC:\Users\EP-JRS\AppData\Local

\Arduino15\packages\arduino\hardware\samd\1.6.20\variants\mkrzero" "-IC:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.20\libraries\SPI" 

"-IC:\Users\EP-JRS\Documents\Arduino\libraries\Adafruit_GFX_Library" "-IC:\Users\EP-JRS\Documents\Arduino\libraries\Adafruit_ILI9341" "C:\Users\EP-JRS\AppData

\Local\Temp\arduino_build_142356\sketch\graphicstest.ino.cpp" -o "C:\Users\EP-JRS\AppData\Local\Temp\arduino_build_142356\sketch\graphicstest.ino.cpp.o"
In file included from C:\Users\EP-JRS\Documents\Arduino\libraries\Adafruit_ILI9341\examples\graphicstest\graphicstest.ino:19:0:

C:\Users\EP-JRS\Documents\Arduino\libraries\Adafruit_ILI9341/Adafruit_ILI9341.h:144:32: error: expected ')' before 'busWidth'

   Adafruit_ILI9341(tftBusWidth busWidth, int8_t d0, int8_t wr, int8_t dc,

                                ^

Multiple libraries were found for "Adafruit_ILI9341.h"
 Used: C:\Users\EP-JRS\Documents\Arduino\libraries\Adafruit_ILI9341
 Not used: C:\Users\EP-JRS\Documents\Arduino\libraries\arduino_829653
Using library SPI at version 1.0 in folder: C:\Users\EP-JRS\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.20\libraries\SPI 
Using library Adafruit_GFX_Library at version 1.2.3 in folder: C:\Users\EP-JRS\Documents\Arduino\libraries\Adafruit_GFX_Library 
Using library Adafruit_ILI9341 at version 1.5.10 in folder: C:\Users\EP-JRS\Documents\Arduino\libraries\Adafruit_ILI9341 
exit status 1
Error compiling for board Arduino MKRZERO.

You have an older version of Adafruit_GFX, I can compile that example without error with

IDE version 1.8.16
Adafruit_ILI9341 version 1.5.10
Adafruit_GFX_Library version 1.10.12
Adafruit_ BusIO version 1.9.8.

1 Like

david_2018
Thank you so much, that appears to be the problem, after updating Adafruit_GFX , I could compile the example. Then I tried one of my custom boards and it initially squawked, looks because I created a few new colors that got lost with the new GFX header file, after adding them I was able to compile with my custom board. I still need to try my other custom boards, but I think you got me on the right track. MUCH APPRECIATED!