fork download
  1.  
  2. namespace Eigen {
  3. template<typename, int, int>
  4. struct Matrix {
  5. Matrix() {}
  6. Matrix(float, float, float) {}
  7. int col(int) {return 0;}
  8. Matrix operator-() {return *this;}
  9. };
  10. void operator<<(int, Matrix<double, 3, 1>) {}
  11. };
  12.  
  13.  
  14. // axis system
  15. static Eigen::Matrix<double, 3, 1> s_xAxis(1.,0.,0.); //!< global x Axis;
  16. static Eigen::Matrix<double, 3, 1> s_yAxis(0.,1.,0.); //!< global y Axis;
  17. static Eigen::Matrix<double, 3, 1> s_zAxis(0.,0.,1.); //!< global z Axis;
  18.  
  19. // origin
  20. static Eigen::Matrix<double, 3, 1> s_origin(0.,0.,0.); //!< origin position
  21.  
  22. static Eigen::Matrix<double, 3,3> s_idRotationZinverse;
  23. s_idRotationZinverse.col(0) << s_yAxis;
  24. s_idRotationZinverse.col(1) << s_xAxis;
  25. s_idRotationZinverse.col(2) << -s_zAxis;
  26.  
  27. int main() {}
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:23: error: expected constructor, destructor, or type conversion before '.' token
prog.cpp:24: error: expected constructor, destructor, or type conversion before '.' token
prog.cpp:25: error: expected constructor, destructor, or type conversion before '.' token
stdout
Standard output is empty