PDA

View Full Version : binary.h interferes with eigen



christoph
01-21-2014, 08:44 PM
I'm using the eigen lib to do some least squares fitting on the teensy 3.0.

This works as long as I only use it inside cpp files that don't have teensyduino's binary.h included somewhere along the way. Is there a reliable and non-destructive way to work around this? I'd prefer to keep eigen in a template class header, not moving it into a cpp file. The code still compiles when I simply comment out everything inside binary.h (apart from the header guard).

Regards

Christoph

christoph
01-24-2014, 06:33 PM
Moving Eigen up in the list of include files solved this. Feels kinda silly...