Two files with same name in different libraries

Given two files of the same name in different libraries:

  • Documents/Arduino/libraries/lib1/classA.h
  • Documents/Arduino/libraries/lib2/classA.h
    Is there a way for Arduino IDE to include both files in a sketch?

Given two files of the same name in different libraries:

Documents/Arduino/libraries/lib1/classA.h
Documents/Arduino/libraries/lib2/classA.h

Is there a way for Arduino IDE to include both files in a sketch?

No. If you worked for me, I'd kick your ass out the door for even trying.

Hi PaulS.

Thank you for the swift and unambiguous response :smiley:

It could happen that two independent Aduino libraries have two files with identical names.
Then I guess there is no way to qualify the paths.

It could happen that two independent Aduino libraries have two files with identical names.

And when it does, all kinds of weird issues arise. That's why i pick on everyone that tries to define a "new" Button library.

He does raise an interesting point. If you include two libraries, it's not your fault if they both use the same name for some internal .h file.