-
-
Notifications
You must be signed in to change notification settings - Fork 7k
IDE 1.6.7 doesn't find .h files located in subfolders #4407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
#1004 and #3080 are correlated but IMHO not the cause of the issue. I think that the cause of your problem is the library-to-library dependency discovery introduced in 1.6.6 (when library A uses library B, you don't need anymore to include both A and B, but only A).
that is not found in any library, so the failure. To workaround this problem you should put first the: #include <Souliss.h> so the builder is able to find the souliss library and add it to the build path. #include <Souliss.h> // load library
#include "bconf/StandardArduino.h" // Use a standard Arduino
// other configurations...
#include "SoulissCore.h" |
Hi @cmaglie that fix the issue, I've created a blank .h file that drives the IDE in the right direction. Actually, the Souliss.h shall be after all the other includes just because those one are simply #defines that spread across all the code, so the Souliss.h include itself the whole code from subfolders. As result the whole library is loaded within the sketch itself. This was the only way with previous Arduino IDE to get a code organized over several subfolders. If you have a smarter way that works with the latest releases, I will appreciate your feedback. |
@plinioseniore, since IDE 1.5.x, there is a new library format, triggered by the presence of a 'src' folder and a 'library.properties' file. Using that format, all source files inside src (including subfolders) will be included in the compilation. I suspect this would answer your question? For more info, see this page (I'm not sure if there is a more friendly introduction than that page, though). |
Just to confirm that with the ide 1.6.7 and souliss-7.1-friariello.1 I got the correct (no library error) compilation by creating an empty file SoulissBase.h into a external library (where Souliss.h) and entering in the sketch at the beginning as the first library the line:
Thanks for the info |
@matthijskooijman I know about but haven't tried if works for our case. Thanks to all for the help. |
Hi,
for souliss we use a subfolder where we collect several .h files, with the new release those are no longer found.
Any hint on how get this compiling as was in 1.6.5?
Thanks.
The text was updated successfully, but these errors were encountered: