sbfreddie
Well-known member
This is an oddball problem that has just come up, maybe because I have not built this piece of code including MTP for quite some time.
I received this peculiar error from my build:
In digging into this dilemma, I discover in the MTP part of the build, which I did include in my build this section of MTP_SD_Callbacks.cpp:
Any ideas on how to get around this problem without hacking up the MTP Library?
Regards,
Ed
I received this peculiar error from my build:
And in the process of trying to figure out what the problem was, considering that I did not include "USBHost_t36" in my build because I am not using it for anything, I looked further and discovered that the build engine was building the "SdFat" and "SD" libraries as well, which I also did not include in my build./Users/freddie/.platformio/packages/framework-arduinoteensy/libraries/USBHost_t36/bluetooth.cpp:35:10: fatal error: EEPROM.h: No such file or directory
In digging into this dilemma, I discover in the MTP part of the build, which I did include in my build this section of MTP_SD_Callbacks.cpp:
and in this section of MTP_USBFS_Callbacks.cpp:// This code should only be build and run if the SD library was included in the sketch
#if defined(__has_include) && __has_include(<SD.h>)
#include <SD.h>
aha! So this is the guilty culprit. The compiler is not responding to the directive "__has_include" at all probably because this version of Teensy:// This code should only be build and run if the USBHost_t36 library was included in the sketch
#if defined(__has_include) && __has_include(<USBHost_t36.h>)
#include <USBHost_t36.h>
Teensy 1.59 which is the current released version, is using the compiler version 11.3.1, and according to my google search the directive "__has_include" was not included until version 17 of the compiler.- framework-arduinoteensy @ 1.159.0 (1.59)
- tool-teensy @ 1.159.0 (1.59)
- toolchain-gccarmnoneeabi-teensy @ 1.110301.0 (11.3.1)
Any ideas on how to get around this problem without hacking up the MTP Library?
Regards,
Ed