Cannot compile with USBHost_t36.h [solved]

TomChiron

Well-known member
I am having problems to compile a scetch using USBHost_t36.h where I am completely stuck now. Even the "Basic.ino" (from MIDI) example is not compiling anymore. I don't understand what is going on here from the error messages. In the past it worked and I couldn't find any similar problem in the forum or internet.

Windows 10, Arduino 1.8.19, Teensyduino 1.58 (installed it again), compiling for Teensy 4.1 (selecting 3.6 does not make a difference)

There is a massive list of much more of such error messages following.

Code:
...
...
Compiling libraries...
Compiling library "USBHost_t36"
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_161126/pch" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\BluetoothConnection.cpp" -o "C:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_161126\\libraries\\USBHost_t36\\BluetoothConnection.cpp.o"
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_161126/pch" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\antplus.cpp" -o "C:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_161126\\libraries\\USBHost_t36\\antplus.cpp.o"
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_161126/pch" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\SerEMU.cpp" -o "C:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_161126\\libraries\\USBHost_t36\\SerEMU.cpp.o"
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_161126/pch" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\USBFilesystemFormatter.cpp" -o "C:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_161126\\libraries\\USBHost_t36\\USBFilesystemFormatter.cpp.o"
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_161126/pch" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\adk.cpp" -o "C:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_161126\\libraries\\USBHost_t36\\adk.cpp.o"
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_161126/pch" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\MassStorageDriver.cpp" -o "C:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_161126\\libraries\\USBHost_t36\\MassStorageDriver.cpp.o"
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\SerEMU.cpp:30:6: error: 'USBSerialEmu' has not been declared
   30 | void USBSerialEmu::init()
      |      ^~~~~~~~~~~~
In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\MassStorageDriver.cpp:29:
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\utility/USBFilesystemFormatter.h:9:15: error: 'USBFilesystem' has not been declared
    9 |   bool format(USBFilesystem &fs, uint8_t fat_type, uint8_t* secBuf, print_t* pr);
      |               ^~~~~~~~~~~~~
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\utility/USBFilesystemFormatter.h:9:69: error: 'print_t' has not been declared
    9 |   bool format(USBFilesystem &fs, uint8_t fat_type, uint8_t* secBuf, print_t* pr);
      |                                                                     ^~~~~~~
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\utility/USBFilesystemFormatter.h:10:18: error: 'USBDrive' has not been declared
   10 |   bool formatFAT(USBDrive &dev, USBFilesystem &fs, uint8_t part, uint8_t fat_type, uint8_t* secBuf, print_t* pr);
      |                  ^~~~~~~~
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\utility/USBFilesystemFormatter.h:10:33: error: 'USBFilesystem' has not been declared
   10 |   bool formatFAT(USBDrive &dev, USBFilesystem &fs, uint8_t part, uint8_t fat_type, uint8_t* secBuf, print_t* pr);
      |                                 ^~~~~~~~~~~~~
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\utility/USBFilesystemFormatter.h:10:101: error: 'print_t' has not been declared
   10 |   bool formatFAT(USBDrive &dev, USBFilesystem &fs, uint8_t part, uint8_t fat_type, uint8_t* secBuf, print_t* pr);
      |                                                                                                     ^~~~~~~
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\utility/USBFilesystemFormatter.h:11:20: error: 'USBDrive' has not been declared
   11 |   bool formatExFAT(USBDrive &dev, USBFilesystem &fs, uint8_t part, uint8_t fat_type, uint8_t* secBuf, print_t* pr);
      |                    ^~~~~~~~
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\utility/USBFilesystemFormatter.h:11:35: error: 'USBFilesystem' has not been declared
   11 |   bool formatExFAT(USBDrive &dev, USBFilesystem &fs, uint8_t part, uint8_t fat_type, uint8_t* secBuf, print_t* pr);
      |                                   ^~~~~~~~~~~~~
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\utility/USBFilesystemFormatter.h:11:103: error: 'print_t' has not been declared
   11 |   bool formatExFAT(USBDrive &dev, USBFilesystem &fs, uint8_t part, uint8_t fat_type, uint8_t* secBuf, print_t* pr);
...
...
...
Bibliothek USBHost_t36 in Version 0.2 im Ordner: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36  wird verwendet
 
"Basic.ino" compiles for me when compile type set to MIDI, Serial + MIDI and Serial + MIDI + Audio.
 
I am having problems to compile a scetch using USBHost_t36.h where I am completely stuck now. Even the "Basic.ino" (from MIDI) example is not compiling anymore. I don't understand what is going on here from the error messages. In the past it worked and I couldn't find any similar problem in the forum or internet.

Windows 10, Arduino 1.8.19, Teensyduino 1.58 (installed it again), compiling for Teensy 4.1 (selecting 3.6 does not make a difference)

There is a massive list of much more of such error messages following.

Code:
...
...
Compiling libraries...
Compiling library "USBHost_t36"
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_161126/pch" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\BluetoothConnection.cpp" -o "C:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_161126\\libraries\\USBHost_t36\\BluetoothConnection.cpp.o"
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_161126/pch" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\antplus.cpp" -o "C:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_161126\\libraries\\USBHost_t36\\antplus.cpp.o"
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_161126/pch" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\SerEMU.cpp" -o "C:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_161126\\libraries\\USBHost_t36\\SerEMU.cpp.o"
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_161126/pch" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\USBFilesystemFormatter.cpp" -o "C:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_161126\\libraries\\USBHost_t36\\USBFilesystemFormatter.cpp.o"
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_161126/pch" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\adk.cpp" -o "C:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_161126\\libraries\\USBHost_t36\\adk.cpp.o"
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_161126/pch" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\MassStorageDriver.cpp" -o "C:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_161126\\libraries\\USBHost_t36\\MassStorageDriver.cpp.o"
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\SerEMU.cpp:30:6: error: 'USBSerialEmu' has not been declared
   30 | void USBSerialEmu::init()
      |      ^~~~~~~~~~~~
In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\MassStorageDriver.cpp:29:
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\utility/USBFilesystemFormatter.h:9:15: error: 'USBFilesystem' has not been declared
    9 |   bool format(USBFilesystem &fs, uint8_t fat_type, uint8_t* secBuf, print_t* pr);
      |               ^~~~~~~~~~~~~
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\utility/USBFilesystemFormatter.h:9:69: error: 'print_t' has not been declared
    9 |   bool format(USBFilesystem &fs, uint8_t fat_type, uint8_t* secBuf, print_t* pr);
      |                                                                     ^~~~~~~
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\utility/USBFilesystemFormatter.h:10:18: error: 'USBDrive' has not been declared
   10 |   bool formatFAT(USBDrive &dev, USBFilesystem &fs, uint8_t part, uint8_t fat_type, uint8_t* secBuf, print_t* pr);
      |                  ^~~~~~~~
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\utility/USBFilesystemFormatter.h:10:33: error: 'USBFilesystem' has not been declared
   10 |   bool formatFAT(USBDrive &dev, USBFilesystem &fs, uint8_t part, uint8_t fat_type, uint8_t* secBuf, print_t* pr);
      |                                 ^~~~~~~~~~~~~
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\utility/USBFilesystemFormatter.h:10:101: error: 'print_t' has not been declared
   10 |   bool formatFAT(USBDrive &dev, USBFilesystem &fs, uint8_t part, uint8_t fat_type, uint8_t* secBuf, print_t* pr);
      |                                                                                                     ^~~~~~~
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\utility/USBFilesystemFormatter.h:11:20: error: 'USBDrive' has not been declared
   11 |   bool formatExFAT(USBDrive &dev, USBFilesystem &fs, uint8_t part, uint8_t fat_type, uint8_t* secBuf, print_t* pr);
      |                    ^~~~~~~~
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\utility/USBFilesystemFormatter.h:11:35: error: 'USBFilesystem' has not been declared
   11 |   bool formatExFAT(USBDrive &dev, USBFilesystem &fs, uint8_t part, uint8_t fat_type, uint8_t* secBuf, print_t* pr);
      |                                   ^~~~~~~~~~~~~
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\utility/USBFilesystemFormatter.h:11:103: error: 'print_t' has not been declared
   11 |   bool formatExFAT(USBDrive &dev, USBFilesystem &fs, uint8_t part, uint8_t fat_type, uint8_t* secBuf, print_t* pr);
...
...
...
Bibliothek USBHost_t36 in Version 0.2 im Ordner: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36  wird verwendet
Do you have

#include <SD.h>

before

#include <USBHost_t36.h>


USBHost_t36.h Basic.ino includes <FS.h>.

Perhaps that doesn't play well with the newer versions of SD.H

In my own heavily modified library, I delete the include of FS.h and added the include of SD.h, and it compiles OK.

A Quick test verified that substituting

#include <SD.H> for #include <FS.h> in USBHost_t3.6.h

resulted in a good compile with Arduino IDE 2.21 and TeensyDuino 1.58, T4.1 and USB Type "Serial + MTP Disk"


I also got a good compile with FS.H instead of SD.h also, so it seems that I needed SD.H only because of other functions in
my own programs.
 
Last edited:
"Basic.ino" compiles for me when compile type set to MIDI, Serial + MIDI and Serial + MIDI + Audio.
Thanks for checking. These settings do not make a difference here. (I understand that the USB type affects only the standard USB port and has no effect regarding the USB host functionality?)

I tried it now on another machine (laptop with the same software versions) and it compiles successfully. USB type set to "serial". So there must be something wrong on this system.

Do you have

#include <SD.h>

before

#include <USBHost_t36.h>


USBHost_t36.h Basic.ino includes <FS.h>.

Perhaps that doesn't play well with the newer versions of SD.H

In my own heavily modified library, I delete the include of FS.h and added the include of SD.h, and it compiles OK.

A Quick test verified that substituting

#include <SD.H> for #include <FS.h> in USBHost_t3.6.h

resulted in a good compile with Arduino IDE 2.21 and TeensyDuino 1.58, T4.1 and USB Type "Serial + MTP Disk"


I also got a good compile with FS.H instead of SD.h also, so it seems that I needed SD.H only because of other functions in
my own programs.

Adding "#include <SD.h>" or FS.h does not change anything here. But I assume that there must be some kind of conflict with some library which is not directly understandable for me. How can I find that out?
 
I have it compiling now using Arduino IDE 2.2.1.

Was hesitant to use it because good old Arduino seems to run stable and reliable and I wasn't used to the new GUI. Maybe this is the time for me to change. For now I won't invest more time in resolving the problem.
 
If you do look at this again, please turn on verbose output during compile in File > Preferences. Arduino IDE will print a lot of info. Near the end should be the list of libraries it used and any duplicates it found by ignored. Many that info will help show what went wrong?

This could also be a case of Windows Defender or other anti-virus software interfering with the Teensyduino installer while writing files. Looks like you have a mix of old and new library files, as if maybe you had an order version installed and the installer was unable to overwrite the old files with new copies (and Windows Defender silently blocked access, leaving the old files in place). Seems hard to imagine since these files are all source code, but unless Arduino IDE found and used some other copy of the library, really can't understand any other way this situation could happen.
 
If you do look at this again, please turn on verbose output during compile in File > Preferences. Arduino IDE will print a lot of info. Near the end should be the list of libraries it used and any duplicates it found by ignored. Many that info will help show what went wrong?

This could also be a case of Windows Defender or other anti-virus software interfering with the Teensyduino installer while writing files. Looks like you have a mix of old and new library files, as if maybe you had an order version installed and the installer was unable to overwrite the old files with new copies (and Windows Defender silently blocked access, leaving the old files in place). Seems hard to imagine since these files are all source code, but unless Arduino IDE found and used some other copy of the library, really can't understand any other way this situation could happen.
Thanks for the information.
Part of the verbose output was in my initial post. Below is a bigger part of the output. I cannot see anything about duplicates or that Arduino IDE is using another, wrong copy of any library. Or I am missing something here? All I can see is files in "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\" which is the correct path (plus the temporary folder which is generated for the new compilation procedure). I did a new installation of Teensyduino and deleted the files before to make sure there are only the current versions of all files there. Any other ideas?

Code:
Arduino: 1.8.19 (Windows 10), TD: 1.58, Board: "Teensy 4.1, Serial, 600 MHz, Faster, US English"






C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Thomas\Documents\Arduino\libraries -fqbn=teensy:avr:teensy41:usb=serial,speed=600,opt=o2std,keys=en-us -ide-version=10819 -build-path C:\Users\Thomas\AppData\Local\Temp\arduino_build_191633 -warnings=all -build-cache C:\Users\Thomas\AppData\Local\Temp\arduino_cache_602460 -verbose C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\examples\MIDI\Basic\Basic.ino

C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Thomas\Documents\Arduino\libraries -fqbn=teensy:avr:teensy41:usb=serial,speed=600,opt=o2std,keys=en-us -ide-version=10819 -build-path C:\Users\Thomas\AppData\Local\Temp\arduino_build_191633 -warnings=all -build-cache C:\Users\Thomas\AppData\Local\Temp\arduino_cache_602460 -verbose C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\examples\MIDI\Basic\Basic.ino

Using board 'teensy41' from platform in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr

Using core 'teensy4' from platform in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr

Detecting libraries used...

"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "C:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_191633\\sketch\\Basic.ino.cpp" -o nul

Alternatives for USBHost_t36.h: [USBHost_t36@0.2]

ResolveLibrary(USBHost_t36.h)

  -> candidates: [USBHost_t36@0.2]

"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "C:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_191633\\sketch\\Basic.ino.cpp" -o nul

"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\BluetoothConnection.cpp" -o nul

"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\MassStorageDriver.cpp" -o nul

"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\SerEMU.cpp" -o nul

"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\USBFilesystemFormatter.cpp" -o nul

"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\adk.cpp" -o nul

"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\antplus.cpp" -o nul

"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\bluetooth.cpp" -o nul

Alternatives for EEPROM.h: [EEPROM@2.0]

ResolveLibrary(EEPROM.h)

  -> candidates: [EEPROM@2.0]

"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\bluetooth.cpp" -o nul

"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\digitizer.cpp" -o nul

"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\ehci.cpp" -o nul

"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\enumeration.cpp" -o nul

"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\hid.cpp" -o nul

"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\hub.cpp" -o nul

"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\joystick.cpp" -o nul

"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\keyboard.cpp" -o nul

"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\keyboardHIDExtras.cpp" -o nul

"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\memory.cpp" -o nul

"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\midi.cpp" -o nul

"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\mouse.cpp" -o nul

"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\print.cpp" -o nul

"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\rawhid.cpp" -o nul

"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\serial.cpp" -o nul

"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM\\EEPROM.cpp" -o nul

Generating function prototypes...

"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "C:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_191633\\sketch\\Basic.ino.cpp" -o "C:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_191633\\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\\Thomas\\AppData\\Local\\Temp\\arduino_build_191633\\preproc\\ctags_target_for_gcc_minus_e.cpp"

Sketch wird kompiliert...

"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/precompile_helper" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr/cores/teensy4" "C:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_191633" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -x c++-header -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr/cores/teensy4" "C:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_191633/pch/Arduino.h" -o "C:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_191633/pch/Arduino.h.gch"

"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_191633/pch" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "C:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_191633\\sketch\\Basic.ino.cpp" -o "C:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_191633\\sketch\\Basic.ino.cpp.o"

Compiling libraries...

Compiling library "USBHost_t36"

"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_191633/pch" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\BluetoothConnection.cpp" -o "C:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_191633\\libraries\\USBHost_t36\\BluetoothConnection.cpp.o"

"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_191633/pch" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\SerEMU.cpp" -o "C:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_191633\\libraries\\USBHost_t36\\SerEMU.cpp.o"

"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_191633/pch" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\antplus.cpp" -o "C:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_191633\\libraries\\USBHost_t36\\antplus.cpp.o"

"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_191633/pch" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\USBFilesystemFormatter.cpp" -o "C:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_191633\\libraries\\USBHost_t36\\USBFilesystemFormatter.cpp.o"

"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_191633/pch" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\MassStorageDriver.cpp" -o "C:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_191633\\libraries\\USBHost_t36\\MassStorageDriver.cpp.o"

"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_191633/pch" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\adk.cpp" -o "C:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_191633\\libraries\\USBHost_t36\\adk.cpp.o"

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\SerEMU.cpp:30:6: error: 'USBSerialEmu' has not been declared

   30 | void USBSerialEmu::init()

      |      ^~~~~~~~~~~~

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\SerEMU.cpp: In function 'void init()':

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\SerEMU.cpp:32:39: error: 'mytransfers' was not declared in this scope

   32 |         USBHost::contribute_Transfers(mytransfers, sizeof(mytransfers)/sizeof(Transfer_t));

      |                                       ^~~~~~~~~~~

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\SerEMU.cpp:33:55: error: invalid use of 'this' in non-member function

   33 |         USBHIDParser::driver_ready_for_hid_collection(this);

      |                                                       ^~~~

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\SerEMU.cpp: At global scope:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\SerEMU.cpp:36:12: error: 'USBSerialEmu' has not been declared

   36 | hidclaim_t USBSerialEmu::claim_collection(USBHIDParser *driver, Device_t *dev, uint32_t topusage)

      |            ^~~~~~~~~~~~

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\SerEMU.cpp: In function 'hidclaim_t claim_collection(USBHIDParser*, Device_t*, uint32_t)':

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\SerEMU.cpp:44:13: error: 'mydevice' was not declared in this scope

   44 |         if (mydevice != NULL && dev != mydevice) return CLAIM_NO;

      |             ^~~~~~~~

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\MassStorageDriver.cpp:29:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\utility/USBFilesystemFormatter.h:9:15: error: 'USBFilesystem' has not been declared

    9 |   bool format(USBFilesystem &fs, uint8_t fat_type, uint8_t* secBuf, print_t* pr);

      |               ^~~~~~~~~~~~~

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\utility/USBFilesystemFormatter.h:9:69: error: 'print_t' has not been declared

    9 |   bool format(USBFilesystem &fs, uint8_t fat_type, uint8_t* secBuf, print_t* pr);

      |                                                                     ^~~~~~~

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\utility/USBFilesystemFormatter.h:10:18: error: 'USBDrive' has not been declared

   10 |   bool formatFAT(USBDrive &dev, USBFilesystem &fs, uint8_t part, uint8_t fat_type, uint8_t* secBuf, print_t* pr);

      |                  ^~~~~~~~

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\utility/USBFilesystemFormatter.h:10:33: error: 'USBFilesystem' has not been declared

   10 |   bool formatFAT(USBDrive &dev, USBFilesystem &fs, uint8_t part, uint8_t fat_type, uint8_t* secBuf, print_t* pr);

      |                                 ^~~~~~~~~~~~~

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\utility/USBFilesystemFormatter.h:10:101: error: 'print_t' has not been declared

   10 |   bool formatFAT(USBDrive &dev, USBFilesystem &fs, uint8_t part, uint8_t fat_type, uint8_t* secBuf, print_t* pr);

      |                                                                                                     ^~~~~~~

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\utility/USBFilesystemFormatter.h:11:20: error: 'USBDrive' has not been declared

   11 |   bool formatExFAT(USBDrive &dev, USBFilesystem &fs, uint8_t part, uint8_t fat_type, uint8_t* secBuf, print_t* pr);

      |                    ^~~~~~~~

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\utility/USBFilesystemFormatter.h:11:35: error: 'USBFilesystem' has not been declared

   11 |   bool formatExFAT(USBDrive &dev, USBFilesystem &fs, uint8_t part, uint8_t fat_type, uint8_t* secBuf, print_t* pr);

      |                                   ^~~~~~~~~~~~~

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\utility/USBFilesystemFormatter.h:11:103: error: 'print_t' has not been declared

   11 |   bool formatExFAT(USBDrive &dev, USBFilesystem &fs, uint8_t part, uint8_t fat_type, uint8_t* secBuf, print_t* pr);

      |                                                                                                       ^~~~~~~

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\utility/USBFilesystemFormatter.h:14:18: error: 'USBDrive' has not been declared

   14 |   bool makeFat16(USBDrive &m_dev);

      |                  ^~~~~~~~

...
...
...
...
...

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\USBHost_t36.h:381:21: note: declared protected here

  381 |         static void println_(const char *s, int n, uint8_t b = DEC) {}

      |                     ^~~~~~~~

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\BluetoothConnection.cpp:2218:13: error: 'usage' was not declared in this scope

 2218 |             usage[0] = 0;

      |             ^~~~~

Bibliothek USBHost_t36 in Version 0.2 im Ordner: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36  wird verwendet

Bibliothek EEPROM in Version 2.0 im Ordner: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\EEPROM  wird verwendet

Fehler beim Kompilieren für das Board Teensy 4.1.
 
Any other ideas?

I know you said you reinstalled Teensyduino. But have to tried first reinstalling Arduino 1.8.19, and then Teensyduino? Running the Arduino installer first will give you a completely blank slate without any Teensy stuff. It's a long shot, but easy to do, so maybe worth a try if you haven't tried already.

Might also be worthwhile to cold reboot your PC before running that Arduino installer. Another long-shot guess, but perhaps some zombie process or other weird problem might be causing Windows to hold a file open and prevent it and maybe an entire folder from being updated. A complete PC reboot before you run the Arduino IDE 1.8.19 installer wouldn't hurt, just to make sure its starting with a fresh reboot of Windows.
 
I did: uninstall Arduino 1.8.19, made sure that the directory is completely deleted. Reboot Windows. Re-Install Arduino 1.8.19. Re-install Teensyduino.
Problem still there. :(
I noticed that the settings haven't been removed (opened last files, selected board etc.). Will look into that later. Maybe there is something wrong in a settings file.
 
I tried a fresh install of Arduino 1.8.19 and Teensyduino 1.58 on my Windows 10 machine, just to double check. It compiles the USBHost_t36 MIDI/Basic example without any errors.

capture.png
 
You could try emptying your "temp" directory, often times part compiled code is stored there. It's supposed to save time by not having to re-compile everything when a change is made to your code.
I have put together a batch file to do the work for me, here is a copy below, juts change "bob" for your user name.
Code:
del /F /S /Q C:\Users\Bob\AppData\Local\Temp\*.*
pause
 
Just improved the batch file, this will work for any current user:
Code:
del /F /S /Q C:\Users\%username%\AppData\Local\Temp\*.*
pause
 
Here's more long-shot guesses...

Quit Arduino, then look C:\\Users\\Thomas\\AppData\\Local\\Temp. Delete everything named Arduino.

Then try a file search over your whole PC. Tell it to look inside hidden folders (how to do this on Windows, I'm not sure...) You'll looking for any stale copies of USBHost_t36.h. These compile errors really look like (for reasons I can't even imagine) you're somehow building the library with an old copy of USBHost_t36.h.
 
Tell it to look inside hidden folders (how to do this on Windows, I'm not sure...)
With file explorer open (or whatever it's called) click view at the top left of the explorer window, then click (select) Hidden Items towards the right of the Menu Ribbon
 
Next long-shot guess, use File > Preferences to check your "Sketchbook location". Default on Windows should be "C:\User\{yourname}\Documents\Arduino".

If this has somehow been changed, I'd recommend putting it back to the default.

Then look in your Documents folder for the Arduino folder. If you have a "libraries" folder inside "Arduino", delete it (maybe make a backup first).

Restart the IDE if you've made any changes, as these older copies of Arduino are limited in their ability to notice libraries have changed.

capture2.png
 
What I also do in such cases, is deleting the folder C:\Users\Paul\AppData\Local\Arduino15.
Mind you, the file preferences.txt is in there - you may want to copy that file to a save location first before deleting the Arduino15 folder.

Paul
 
Thank you everybody for your support!

Problem solved now!

After trying to remove every last bit remaining from Arduino (library folder, ...AppData\Local\Arduino15 folder, ...AppData\Local\temp folder) without success ...
I finally found an old copy of USBHost_t36.h in C:\Users\Thomas\AppData\Local\VirtualStore\Program Files (x86)\Arduino\hardware\teensy.... Somehow that must be a remaining relict from an installation where Windows pointed to this directory while not having the user rights to the real directory or so. No idea from what this was coming. Or maybe I edited the file long time ago for some reson and it got saved there somehow. There where only two files in this directory (one from another library). Windows seems to redirect to this directory in the background unnoticed. So in the verbose output from Arduino the paths are shown and it is not possible to see that the file is taken from this "VirtualStore" path. Really hard to find.
 
Back
Top