On a Teensy LC in Arduino IDE i’m getting compiler errors when using both libraries. Disabling either will allow my sketch to compile. The first 2 errors are these:
libraries/SparkFun_Si7021_Humidity_and_Temperature_Sensor/src/SparkFun_Si7021_Breakout_Library.h:40:22: error: expected identifier before numeric constant #define ADDRESS 0x40
and
libraries/OSC/OSCMessage.h:65:9: note: in expansion of macro ‘ADDRESS’ ADDRESS,
SparkFun_Si7021_Breakout_Library.h is defining ADDRESS to be 0x40. OSCMessage.h (included from OSCBundle.h) is trying to define an enum named ADDRESS, and if SparkFun_Si7021_Breakout_Library.h is included first, it tries to declare an enum called 0x40, which obviously won’t work.
Since the enum is a private enum only within the OSCBundle code, including OSCBundle.h first should be OK.
Sparkfun should change the #define (and ideally all macros/defines/public variables within SparkFun_Si7021_Breakout_Library.h) to have a unique prefix (ie. #define SI7012_ADDRESS 0x40) to avoid such conflicts.