tomstewart89 / BasicLinearAlgebra

A library for using matrices and linear algebra on Arduino
MIT License
185 stars 38 forks source link

Doesn't compile for ESP32 Dev Board #83

Closed CF20852 closed 1 month ago

CF20852 commented 1 month ago

In file included from d:\Users\cflem\Documents\Arduino\libraries\BasicLinearAlgebra/BasicLinearAlgebra.h:10, from C:\Users\cflem\AppData\Local\Temp.arduinoIDE-unsaved202467-3320-15y8msi.qryx\HowToUse\HowToUse.ino:1: d:\Users\cflem\Documents\Arduino\libraries\BasicLinearAlgebra/ElementStorage.h:136:43: error: expected unqualified-id before 'const' 136 | HorizontalConcat<LeftType, RightType>(const LeftType &l, const RightType &r) : left(l), right(r) {} | ^~~~~ d:\Users\cflem\Documents\Arduino\libraries\BasicLinearAlgebra/ElementStorage.h:136:43: error: expected ')' before 'const' 136 | HorizontalConcat<LeftType, RightType>(const LeftType &l, const RightType &r) : left(l), right(r) {} | ~^~~~~ | ) d:\Users\cflem\Documents\Arduino\libraries\BasicLinearAlgebra/ElementStorage.h:151:41: error: expected unqualified-id before 'const' 151 | VerticalConcat<TopType, BottomType>(const TopType &t, const BottomType &b) : top(t), bottom(b) {} | ^~~~~ d:\Users\cflem\Documents\Arduino\libraries\BasicLinearAlgebra/ElementStorage.h:151:41: error: expected ')' before 'const' 151 | VerticalConcat<TopType, BottomType>(const TopType &t, const BottomType &b) : top(t), bottom(b) {} | ~^~~~~ | ) In file included from d:\Users\cflem\Documents\Arduino\libraries\BasicLinearAlgebra/BasicLinearAlgebra.h:181: d:\Users\cflem\Documents\Arduino\libraries\BasicLinearAlgebra/impl/BasicLinearAlgebra.h: In instantiation of 'BLA::HorizontalConcat<DerivedType, OperandType> BLA::operator||(const MatrixBase<DerivedType, Rows, DerivedType::Cols, DType>&, const MatrixBase<OperandType, Rows, OperandType::Cols, DType>&) [with DerivedType = Matrix<3, 3>; OperandType = Matrix<3, 3>; int Rows = 3; DType = float]': C:\Users\cflem\AppData\Local\Temp.arduinoIDE-unsaved202467-3320-15y8msi.qryx\HowToUse\HowToUse.ino:70:39: required from here d:\Users\cflem\Documents\Arduino\libraries\BasicLinearAlgebra/impl/BasicLinearAlgebra.h:208:12: error: no matching function for call to 'BLA::HorizontalConcat<BLA::Matrix<3, 3>, BLA::Matrix<3, 3> >::HorizontalConcat(const BLA::Matrix<3, 3>&, const BLA::Matrix<3, 3>&)' 208 | return HorizontalConcat<DerivedType, OperandType>(static_cast<const DerivedType &>(left), | ^~~~~~~~~~~~~~~~~~ 209 | static_cast<const OperandType &>(right)); | ~~~~~~~~ d:\Users\cflem\Documents\Arduino\libraries\BasicLinearAlgebra/ElementStorage.h:130:8: note: candidate: 'constexpr BLA::HorizontalConcat<BLA::Matrix<3, 3>, BLA::Matrix<3, 3> >::HorizontalConcat(const BLA::HorizontalConcat<BLA::Matrix<3, 3>, BLA::Matrix<3, 3> >&)' 130 | struct HorizontalConcat : public MatrixBase<HorizontalConcat<LeftType, RightType>, LeftType::Rows, | ^~~~ d:\Users\cflem\Documents\Arduino\libraries\BasicLinearAlgebra/ElementStorage.h:130:8: note: candidate expects 1 argument, 2 provided d:\Users\cflem\Documents\Arduino\libraries\BasicLinearAlgebra/ElementStorage.h:130:8: note: candidate: 'constexpr BLA::HorizontalConcat<BLA::Matrix<3, 3>, BLA::Matrix<3, 3> >::HorizontalConcat(BLA::HorizontalConcat<BLA::Matrix<3, 3>, BLA::Matrix<3, 3> >&&)' d:\Users\cflem\Documents\Arduino\libraries\BasicLinearAlgebra/ElementStorage.h:130:8: note: candidate expects 1 argument, 2 provided d:\Users\cflem\Documents\Arduino\libraries\BasicLinearAlgebra/impl/BasicLinearAlgebra.h: In instantiation of 'BLA::VerticalConcat<DerivedType, OperandType> BLA::operator&&(const MatrixBase<DerivedType, DerivedType::Rows, Cols, DType>&, const MatrixBase<OperandType, OperandType::Rows, Cols, DType>&) [with DerivedType = Matrix<3, 3>; OperandType = Matrix<3, 3>; int Cols = 3; DType = float]': C:\Users\cflem\AppData\Local\Temp.arduinoIDE-unsaved202467-3320-15y8msi.qryx\HowToUse\HowToUse.ino:73:40: required from here d:\Users\cflem\Documents\Arduino\libraries\BasicLinearAlgebra/impl/BasicLinearAlgebra.h:218:12: error: no matching function for call to 'BLA::VerticalConcat<BLA::Matrix<3, 3>, BLA::Matrix<3, 3> >::VerticalConcat(const BLA::Matrix<3, 3>&, const BLA::Matrix<3, 3>&)' 218 | return VerticalConcat<DerivedType, OperandType>(static_cast<const DerivedType &>(top), | ^~~~~~~~~~~~~~~~~~~ 219 | static_cast<const OperandType &>(bottom)); | ~~~~~~~~~ d:\Users\cflem\Documents\Arduino\libraries\BasicLinearAlgebra/ElementStorage.h:145:8: note: candidate: 'constexpr BLA::VerticalConcat<BLA::Matrix<3, 3>, BLA::Matrix<3, 3> >::VerticalConcat(const BLA::VerticalConcat<BLA::Matrix<3, 3>, BLA::Matrix<3, 3> >&)' 145 | struct VerticalConcat : public MatrixBase<VerticalConcat<TopType, BottomType>, TopType::Rows + BottomType::Rows, | ^~~~~~ d:\Users\cflem\Documents\Arduino\libraries\BasicLinearAlgebra/ElementStorage.h:145:8: note: candidate expects 1 argument, 2 provided d:\Users\cflem\Documents\Arduino\libraries\BasicLinearAlgebra/ElementStorage.h:145:8: note: candidate: 'constexpr BLA::VerticalConcat<BLA::Matrix<3, 3>, BLA::Matrix<3, 3> >::VerticalConcat(BLA::VerticalConcat<BLA::Matrix<3, 3>, BLA::Matrix<3, 3> >&&)' d:\Users\cflem\Documents\Arduino\libraries\BasicLinearAlgebra/ElementStorage.h:145:8: note: candidate expects 1 argument, 2 provided

CF20852 commented 1 month ago

Oops, inadvertently duplicated Issue #82.