Skip to content

Arduino sketches do not allow subdirectories for inclusion [imported] #1004

Closed

Description

This is Issue 1004 moved from a Google Code project.
Added by 2012-08-10T11:05:20.000Z by mackatack.
Please review that bug for more context and additional comments, but update this bug.

Original labels: Type-Defect, Priority-Medium

Original description

I have a rather big (open source) project with quite a lot of files that I would like to move to subdirectories within the sketch directory.

for example:

sketch.ino
sketch.h
subdir/sub2/file.h
subdir/sub2/file.cpp
lib/libraryname/lib.h
utils/utilname/util.h

At this moment I cannot include files in subdirectories by using #include "subdir/sub2/file.h" because the files do not get copied to the temporary compilation directory. As a consequence I get the following order while compiling: "error: subdir/file.h: No such file or directory".

It's quite common that source code is split up in different logical folders as the developer sees fit. Please support subdirectories by copying all the files and directories to the compilation directory. The files in the subdirs should then also be able to include files in parent directories; #include "../parent.h" for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions