apparently, conditional includes always used ide identify "required" library files. consider example:
this seems trick ide linking in neohwserial, when condition false. result, hardwareserial (via 'serial') conflicts incorrectly linked neohwserial. commenting out neohwserial include removes "require" of library, , hardwareserial links in correctly:
sigh. behavior might related this. still problem in 1.6.5r2
i opened issue this.
cheers,
/dev
code: [select]
#if 0
#include <neohwserial.h>
#endif
void setup()
{
serial.begin( 9600 );
}
void loop() {}
this seems trick ide linking in neohwserial, when condition false. result, hardwareserial (via 'serial') conflicts incorrectly linked neohwserial. commenting out neohwserial include removes "require" of library, , hardwareserial links in correctly:
code: [select]
#if 0
//#include <neohwserial.h>
#endif
void setup()
{
serial.begin( 9600 );
}
void loop() {}
sigh. behavior might related this. still problem in 1.6.5r2
i opened issue this.
cheers,
/dev
Arduino Forum > Development > Other Software Development > FYI: Another IDE include error
arduino
Comments
Post a Comment