Skip to content

Follow arduino library directory layout #5

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

Open
wmarkow opened this issue Mar 26, 2019 · 0 comments
Open

Follow arduino library directory layout #5

wmarkow opened this issue Mar 26, 2019 · 0 comments

Comments

@wmarkow
Copy link

wmarkow commented Mar 26, 2019

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?

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

1 participant