You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There seams to be a bug with the library detection. Libraries aren't detected correctly regardless of whether they are placed in the IDEs install libraries folder or the sketch libraries folder [though I had managed to get it to detect them at one point, can't remember how though.] It refuses to detect libraries that conform to the 1.0 library structure and libraries that follow the 1.5.x structure. Though the main portion that I wanted to cover is the inclusion of other libraries in a library. If a library is included from a file that does not use the ino extension [both files local to the sketch and libraries] then most included libraries seam to fail to be detected and compiled. It seams the IDE isn't including the libraries folder in the search path if it isn't the including file isn't of the ino extension. The only library that doesn't seam to be affected by this is the inclusion of the Arduino.h header, this includes just fine, but things like Wire.h are not found.
I would like to note that there is a hack to get everything to compile correctly, and that is to include all of the "missing" headers in the main ino of the sketch [though I see no reason that it wouldn't work for any ino in the sketch, it just happens to be that I am only using one of these, my other files are self created libraries that I am currently working on and are for personal use only.]
If clarity is needed for anything, please let me know, I'm more than happy to help.
The text was updated successfully, but these errors were encountered:
Thanks @heisenberg42 : what you describe is the current and expected behaviour of the IDE. The sketch must include all the needed libraries, even those needed by other libraries and not directly by the sketch. #2792 tracks a proposed improvement
There seams to be a bug with the library detection. Libraries aren't detected correctly regardless of whether they are placed in the IDEs install libraries folder or the sketch libraries folder [though I had managed to get it to detect them at one point, can't remember how though.] It refuses to detect libraries that conform to the 1.0 library structure and libraries that follow the 1.5.x structure. Though the main portion that I wanted to cover is the inclusion of other libraries in a library. If a library is included from a file that does not use the ino extension [both files local to the sketch and libraries] then most included libraries seam to fail to be detected and compiled. It seams the IDE isn't including the libraries folder in the search path if it isn't the including file isn't of the ino extension. The only library that doesn't seam to be affected by this is the inclusion of the Arduino.h header, this includes just fine, but things like Wire.h are not found.
I would like to note that there is a hack to get everything to compile correctly, and that is to include all of the "missing" headers in the main ino of the sketch [though I see no reason that it wouldn't work for any ino in the sketch, it just happens to be that I am only using one of these, my other files are self created libraries that I am currently working on and are for personal use only.]
If clarity is needed for anything, please let me know, I'm more than happy to help.
The text was updated successfully, but these errors were encountered: