Skip to content

Follow arduino library directory layout #5

@wmarkow

Description

@wmarkow

It would be nice to follow Arduino-IDE-1.5:-Library-specification and make the following directory structure in the root directory:

  • src where the ApplicationMonitor.cpp and ApplicationMonitor.h go
  • examples where CrashTracking.ino and Program.cpp go

The reason behind this: I'm using Sloeber with Eclipse CDT to develop and build software for Arduino. When the sources of this library doesn't follow the Arduino Library Layout, then Sloeber compiles everything what can be compiled and during the linking phase it throws some errors related to multiple definition of setup and loop methods (as they exist in Program.cpp and my main source file of my own project). If the library follows the Arduino Library Layout, then only src folder will be compiled by default and the linking phase finishes with success.

Would that be possible to do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions