Unable to compile with bolderflight eigen library

jjoh

New member
I'm trying to compile the arduino example from the bolderflight eigen library (https://github.com/bolderflight/eigen) using Arduino IDE 2.2.1 for the Teensy 4.1. It's refusing to compile mostly due to this prefetch function. Any suggestions?
 

Attachments

  • compileOutput.txt
    156.1 KB · Views: 21
Yeah its a know problem and I believe fixe in TD 1.59 beta 3. But in the mean time try adding:
C++:
#ifdef abs
#undef abs
#endif

before the
Code:
#include "eigen.h"
the errors will go away and it should work

EDIT: Just as a note if that is still giving you problems install 0.59.3 using the Arduino 2.2.1 boards install for Teensy.

Just reran it and on the t4.1 I am getting the following output:
Code:
nrow: 6
ncol: 6

0.112775, 0.048292, -0.313197, -0.067979, 0.238543, 0.096648,
-0.002733, -0.177438, 1.128800, 0.750399, -1.283369, -0.084223,
0.645583, 0.189010, -1.758835, -1.095649, 2.438091, 0.718835,
-0.613755, -0.359209, 2.150181, 1.179505, -2.575186, -0.930255,
0.504728, 0.085257, -0.751615, -0.277679, 1.106807, 0.128982,
-0.107398, 0.104756, 0.108780, 0.094344, -0.231374, 0.222546,
 
Last edited:
Back
Top