Closed GoogleCodeExporter closed 9 years ago
Thanks for the report. The library search functionality is definitely a bit
wonky and could use some rethinking / cleanup.
Original comment by dmel...@gmail.com
on 9 Sep 2011 at 7:21
This issue also occurs in rc1. The workaround is to also include the library
in the main sketch file.
Original comment by de...@peerassembly.com
on 5 Oct 2011 at 11:56
Another problematic scenario: I have an "RTClib" which supports real-time clock
functionality through various means (millis, h/w I2C, s/w I2C, DCF77). The most
commonly used option is not h/w I2C, but since RTClib includes code which needs
the Wire library, everyone gets an error if they don't include "Wire.h" in
their main sketch. The lack of automatic linker dependency checking forces
everyone to manually do it.
Linking with all libraries to let the linker resolve all references is probably
impossible due to name conflicts.
There *is* a solution, which is to use C++ namespaces. It's going to require
some extra effort by all library makers, and some explanation for newbies ("use
FancyLibName::MYCONST instead of MYCONST"). To make this work, the Arduino team
will need to take the lead and set the example. See issue #651 for a related
name conflict.
Original comment by jc@wippler.nl
on 15 Oct 2011 at 9:25
Original comment by federico...@gmail.com
on 3 Jul 2015 at 8:59
Original issue reported on code.google.com by
robert.a...@gmail.com
on 9 Sep 2011 at 3:36