Skip to content

Arduino 1.6.10 subfolder error #5176

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

Closed
MagoKimbra opened this issue Jul 28, 2016 · 3 comments
Closed

Arduino 1.6.10 subfolder error #5176

MagoKimbra opened this issue Jul 28, 2016 · 3 comments

Comments

@MagoKimbra
Copy link

I have module in subfolder, until the 1.6.9 version it could easily include files in subfolder
example #include "module / macros.h"
Now with the new 1.6.10 version of error that can not find the file.
Why?
And 'anything changed in the inclusions?

@per1234
Copy link
Collaborator

per1234 commented Jul 29, 2016

You now need to move it to the src subfolder of your sketch folder and change the code to:

#include "src/module/macros.h"

This is the source of the change: arduino/arduino-builder#148

@matthijskooijman
Copy link
Collaborator

Exactly, so I'm closing this commit. @cmaglie, this should be made more prominent in the changelog, I think.

@MagoKimbra
Copy link
Author

Ok.. I change name subfolder "module" in "src" and now function!!! Thank's

yushenli added a commit to yushenli/cessna172panel that referenced this issue May 23, 2020
We'll have much more hardwares supported (knob, button, guitar pick
selector, N-way switches and etc.). They should have a separate
directory to not mess up the root of the sketch directory.

Also, Arduino has this restriction that only "src" directory under the
sketch directory will be compiled:
arduino/Arduino#5176
FrodgE added a commit to FrodgE/sun-harvester that referenced this issue Aug 5, 2020
…andard Arduino libraries. Rather than requiring these libraries to be manually relocated to the Arduino "libraries" directory, just refer to them in place. Note for an Arduino project to support this file structure all sub-directory includes must be contained within a "src" sub-directory. The sub-directory limitation was introduced in 1.6.10, see arduino/Arduino#5176, and arduino/arduino-builder#148
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants