I'm writing a custom library which uses #include <wire.h> but the compiler can't find it. If I use #include <wire.h> in the .ino file it finds it ok.
Any suggestions on why the behaviour should be different?
I'm writing a custom library which uses #include <wire.h> but the compiler can't find it. If I use #include <wire.h> in the .ino file it finds it ok.
Any suggestions on why the behaviour should be different?
Welcome to the forum
Please post a full example of code that causes the problem (the .ino, .h and .cpp files) and the the full error message that is generated
Note the name of the library header file is Wire.h not wire.h
Sorry - I did actually use #include <wire.h> although other compilers that I've used in the past were case insensitive for include file names.
Finger trouble on my part. I used #include <Wire.h> and it worked.
Many thanks for the help. I'll remember in the future to worry about case in include file names in the future.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.