#include <Adafruit_MAX31856.h> gives #include <Adafruit_MAX31856_library.h> which fails

Naming problem?

Using Web IDE when I add the Adafruit_MAX31856_library which contains:

Files

  • [Adafruit_MAX31856.cpp]
  • [Adafruit_MAX31856.h]

I get a file not found compile error because the IDE adds:
#include <Adafruit_MAX31856_library.h>

changing the include to:
#include <Adafruit_MAX31856.h>
like in the example app works fine.

This is a common/known issue with contributed libraries.

There was a guideline post not too long ago where the contributors were encouraged to either name the header file the same way as the library itself or otherwise add a “dummy” header with the library name which in turn contains an #include statement referencing the actual header file.

thanks.

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