Skip to content

Instantly share code, notes, and snippets.

@patmarion
Created August 14, 2014 13:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patmarion/7b56f6e0cb5536b7f025 to your computer and use it in GitHub Desktop.
Save patmarion/7b56f6e0cb5536b7f025 to your computer and use it in GitHub Desktop.
drakeGradientUtil.cpp compile errors
[ 45%] Building CXX object util/CMakeFiles/drakeGradientUtil.dir/drakeGradientUtil.cpp.o
/source/drake/drake-distro/drake/util/drakeGradientUtil.cpp:79:21: error: redefinition of default argument
int M_rows, int q_start = 0, int q_subvector_size = -1) {
^ ~
/source/drake/drake-distro/drake/util/drakeGradientUtil.h:68:21: note: previous definition is here
int M_rows, int q_start = 0, int q_subvector_size = -1);
^ ~
/source/drake/drake-distro/drake/util/drakeGradientUtil.cpp:79:38: error: redefinition of default argument
int M_rows, int q_start = 0, int q_subvector_size = -1) {
^ ~~
/source/drake/drake-distro/drake/util/drakeGradientUtil.h:68:38: note: previous definition is here
int M_rows, int q_start = 0, int q_subvector_size = -1);
^ ~~
/source/drake/drake-distro/drake/util/drakeGradientUtil.cpp:97:93: error: redefinition of default argument
const std::array<int, NRows>& rows, const std::array<int, NCols>& cols, int M_rows, int q_start = 0, int q_subvector_size = QSubvectorSize) {
^ ~
/source/drake/drake-distro/drake/util/drakeGradientUtil.h:73:93: note: previous definition is here
const std::array<int, NRows>& rows, const std::array<int, NCols>& cols, int M_rows, int q_start = 0, int q_subvector_size = QSubvectorSize);
^ ~
/source/drake/drake-distro/drake/util/drakeGradientUtil.cpp:97:110: error: redefinition of default argument
const std::array<int, NRows>& rows, const std::array<int, NCols>& cols, int M_rows, int q_start = 0, int q_subvector_size = QSubvectorSize) {
^ ~~~~~~~~~~~~~~
/source/drake/drake-distro/drake/util/drakeGradientUtil.h:73:110: note: previous definition is here
const std::array<int, NRows>& rows, const std::array<int, NCols>& cols, int M_rows, int q_start = 0, int q_subvector_size = QSubvectorSize);
^ ~~~~~~~~~~~~~~
/source/drake/drake-distro/drake/util/drakeGradientUtil.cpp:119:81: error: redefinition of default argument
const std::vector<int>& rows, const std::vector<int>& cols, int M_rows, int q_start = 0, int q_subvector_size = -1) {
^ ~
/source/drake/drake-distro/drake/util/drakeGradientUtil.h:81:81: note: previous definition is here
const std::vector<int>& rows, const std::vector<int>& cols, int M_rows, int q_start = 0, int q_subvector_size = -1);
^ ~
/source/drake/drake-distro/drake/util/drakeGradientUtil.cpp:119:98: error: redefinition of default argument
const std::vector<int>& rows, const std::vector<int>& cols, int M_rows, int q_start = 0, int q_subvector_size = -1) {
^ ~~
/source/drake/drake-distro/drake/util/drakeGradientUtil.h:81:98: note: previous definition is here
const std::vector<int>& rows, const std::vector<int>& cols, int M_rows, int q_start = 0, int q_subvector_size = -1);
^ ~~
/source/drake/drake-distro/drake/util/drakeGradientUtil.cpp:133:93: error: redefinition of default argument
const std::array<int, NRows>& rows, const std::array<int, NCols>& cols, int M_rows, int q_start = 0, int q_subvector_size = QSubvectorSize) {
^ ~
/source/drake/drake-distro/drake/util/drakeGradientUtil.h:85:93: note: previous definition is here
const std::array<int, NRows>& rows, const std::array<int, NCols>& cols, int M_rows, int q_start = 0, int q_subvector_size = QSubvectorSize);
^ ~
/source/drake/drake-distro/drake/util/drakeGradientUtil.cpp:133:110: error: redefinition of default argument
const std::array<int, NRows>& rows, const std::array<int, NCols>& cols, int M_rows, int q_start = 0, int q_subvector_size = QSubvectorSize) {
^ ~~~~~~~~~~~~~~
/source/drake/drake-distro/drake/util/drakeGradientUtil.h:85:110: note: previous definition is here
const std::array<int, NRows>& rows, const std::array<int, NCols>& cols, int M_rows, int q_start = 0, int q_subvector_size = QSubvectorSize);
^ ~~~~~~~~~~~~~~
/source/drake/drake-distro/drake/util/drakeGradientUtil.cpp:184:1: error: explicit instantiation of undefined function template 'setSubMatrixGradient'
MAKE_SETSUBMATRIXGRADIENT_EXPLICIT_INSTANTIATION(double, Eigen::Dynamic, Eigen::Dynamic, Eigen::Dynamic, 3, Eigen::Dynamic, 3, 1)
^
/source/drake/drake-distro/drake/util/drakeGradientUtil.cpp:182:17: note: expanded from macro 'MAKE_SETSUBMATRIXGRADIENT_EXPLICIT_INSTANTIATION'
template void setSubMatrixGradient<QSubvectorSize>(Eigen::MatrixBase< Eigen::Matrix<Type, DMRows, DMCols> >&, const Eigen::MatrixBase< Eigen::Matrix<Type, DMSubRows, DMSubCols> >&, const std::array<int, NRows>&, const std::array<int, NCols>&, int, int, int);
^
/source/drake/drake-distro/drake/util/drakeGradientUtil.h:84:6: note: explicit instantiation refers here
void setSubMatrixGradient(Eigen::MatrixBase<DerivedA>& dM, const Eigen::MatrixBase<DerivedB>& dM_submatrix,
^
/source/drake/drake-distro/drake/util/drakeGradientUtil.cpp:185:1: error: explicit instantiation of undefined function template 'setSubMatrixGradient'
MAKE_SETSUBMATRIXGRADIENT_EXPLICIT_INSTANTIATION(double, Eigen::Dynamic, 16, Eigen::Dynamic, Eigen::Dynamic, Eigen::Dynamic, 3, 3)
^
/source/drake/drake-distro/drake/util/drakeGradientUtil.cpp:182:17: note: expanded from macro 'MAKE_SETSUBMATRIXGRADIENT_EXPLICIT_INSTANTIATION'
template void setSubMatrixGradient<QSubvectorSize>(Eigen::MatrixBase< Eigen::Matrix<Type, DMRows, DMCols> >&, const Eigen::MatrixBase< Eigen::Matrix<Type, DMSubRows, DMSubCols> >&, const std::array<int, NRows>&, const std::array<int, NCols>&, int, int, int);
^
/source/drake/drake-distro/drake/util/drakeGradientUtil.h:84:6: note: explicit instantiation refers here
void setSubMatrixGradient(Eigen::MatrixBase<DerivedA>& dM, const Eigen::MatrixBase<DerivedB>& dM_submatrix,
^
/source/drake/drake-distro/drake/util/drakeGradientUtil.cpp:186:1: error: explicit instantiation of undefined function template 'setSubMatrixGradient'
MAKE_SETSUBMATRIXGRADIENT_EXPLICIT_INSTANTIATION(double, Eigen::Dynamic, 16, Eigen::Dynamic, 9, Eigen::Dynamic, 3, 3)
^
/source/drake/drake-distro/drake/util/drakeGradientUtil.cpp:182:17: note: expanded from macro 'MAKE_SETSUBMATRIXGRADIENT_EXPLICIT_INSTANTIATION'
template void setSubMatrixGradient<QSubvectorSize>(Eigen::MatrixBase< Eigen::Matrix<Type, DMRows, DMCols> >&, const Eigen::MatrixBase< Eigen::Matrix<Type, DMSubRows, DMSubCols> >&, const std::array<int, NRows>&, const std::array<int, NCols>&, int, int, int);
^
/source/drake/drake-distro/drake/util/drakeGradientUtil.h:84:6: note: explicit instantiation refers here
void setSubMatrixGradient(Eigen::MatrixBase<DerivedA>& dM, const Eigen::MatrixBase<DerivedB>& dM_submatrix,
^
/source/drake/drake-distro/drake/util/drakeGradientUtil.cpp:187:1: error: explicit instantiation of undefined function template 'setSubMatrixGradient'
MAKE_SETSUBMATRIXGRADIENT_EXPLICIT_INSTANTIATION(double, Eigen::Dynamic, 16, Eigen::Dynamic, 3, Eigen::Dynamic, 3, 1)
^
/source/drake/drake-distro/drake/util/drakeGradientUtil.cpp:182:17: note: expanded from macro 'MAKE_SETSUBMATRIXGRADIENT_EXPLICIT_INSTANTIATION'
template void setSubMatrixGradient<QSubvectorSize>(Eigen::MatrixBase< Eigen::Matrix<Type, DMRows, DMCols> >&, const Eigen::MatrixBase< Eigen::Matrix<Type, DMSubRows, DMSubCols> >&, const std::array<int, NRows>&, const std::array<int, NCols>&, int, int, int);
^
/source/drake/drake-distro/drake/util/drakeGradientUtil.h:84:6: note: explicit instantiation refers here
void setSubMatrixGradient(Eigen::MatrixBase<DerivedA>& dM, const Eigen::MatrixBase<DerivedB>& dM_submatrix,
^
/source/drake/drake-distro/drake/util/drakeGradientUtil.cpp:195:1: error: explicit instantiation of undefined function template 'getSubMatrixGradient'
MAKE_GETSUBMATRIXGRADIENT_ARRAY_EXPLICIT_INSTANTIATION(double, Eigen::Dynamic, Eigen::Dynamic, 3, 1, Eigen::Dynamic)
^
/source/drake/drake-distro/drake/util/drakeGradientUtil.cpp:193:3: note: expanded from macro 'MAKE_GETSUBMATRIXGRADIENT_ARRAY_EXPLICIT_INSTANTIATION'
getSubMatrixGradient(const Eigen::MatrixBase< Eigen::Matrix<Type, DMRows, DMCols> >&, \
^
/source/drake/drake-distro/drake/util/drakeGradientUtil.h:72:1: note: explicit instantiation refers here
getSubMatrixGradient(const Eigen::MatrixBase<Derived>& dM,
^
/source/drake/drake-distro/drake/util/drakeGradientUtil.cpp:196:1: error: explicit instantiation of undefined function template 'getSubMatrixGradient'
MAKE_GETSUBMATRIXGRADIENT_ARRAY_EXPLICIT_INSTANTIATION(double, 16, Eigen::Dynamic, 3, 3, Eigen::Dynamic)
^
/source/drake/drake-distro/drake/util/drakeGradientUtil.cpp:193:3: note: expanded from macro 'MAKE_GETSUBMATRIXGRADIENT_ARRAY_EXPLICIT_INSTANTIATION'
getSubMatrixGradient(const Eigen::MatrixBase< Eigen::Matrix<Type, DMRows, DMCols> >&, \
^
/source/drake/drake-distro/drake/util/drakeGradientUtil.h:72:1: note: explicit instantiation refers here
getSubMatrixGradient(const Eigen::MatrixBase<Derived>& dM,
^
/source/drake/drake-distro/drake/util/drakeGradientUtil.cpp:197:1: error: explicit instantiation of undefined function template 'getSubMatrixGradient'
MAKE_GETSUBMATRIXGRADIENT_ARRAY_EXPLICIT_INSTANTIATION(double, 16, Eigen::Dynamic, 3, 1, Eigen::Dynamic)
^
/source/drake/drake-distro/drake/util/drakeGradientUtil.cpp:193:3: note: expanded from macro 'MAKE_GETSUBMATRIXGRADIENT_ARRAY_EXPLICIT_INSTANTIATION'
getSubMatrixGradient(const Eigen::MatrixBase< Eigen::Matrix<Type, DMRows, DMCols> >&, \
^
/source/drake/drake-distro/drake/util/drakeGradientUtil.h:72:1: note: explicit instantiation refers here
getSubMatrixGradient(const Eigen::MatrixBase<Derived>& dM,
^
/source/drake/drake-distro/drake/util/drakeGradientUtil.cpp:198:1: error: explicit instantiation of undefined function template 'getSubMatrixGradient'
MAKE_GETSUBMATRIXGRADIENT_ARRAY_EXPLICIT_INSTANTIATION(double, 3, Eigen::Dynamic, 3, 1, Eigen::Dynamic)
^
/source/drake/drake-distro/drake/util/drakeGradientUtil.cpp:193:3: note: expanded from macro 'MAKE_GETSUBMATRIXGRADIENT_ARRAY_EXPLICIT_INSTANTIATION'
getSubMatrixGradient(const Eigen::MatrixBase< Eigen::Matrix<Type, DMRows, DMCols> >&, \
^
/source/drake/drake-distro/drake/util/drakeGradientUtil.h:72:1: note: explicit instantiation refers here
getSubMatrixGradient(const Eigen::MatrixBase<Derived>& dM,
^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment