9 years, 11 months ago.

Dependencies

How can I add dependencies to a published library repository?

1 Answer

9 years, 11 months ago.

Add them in the online compiler, then publish and they should be there.

Accepted Answer

This could not be the final solution. Almost every Library needs the mbed SDK and so every library would import another instance of the mbed SDK. The compiler would see multiple definitions.

I think there should be an option at the repository admin page to add dependencies for libraries.

posted by BlazeX . 15 Jan 2015

Thats a different kind of dependencies than what the current dependencies are. They also import the instance indeed. You would want one which only when you import your library, checks if the requirement is already there, and if not ask if you want to import it as a seperate library. Would be a good idea, but it is not possible yet.

posted by Erik - 15 Jan 2015