Search code examples
c++debugginggdbeigeneigen3

Using GDB with Eigen C++ library


I am using the Eigen C++ library downloadable from http://eigen.tuxfamily.org/. This is a C++ library for easier handling of Matrices and Arrays. I use g++ compiler and gdb for debugging. However, I found that I am unable to print the content of a Matrix (provided by Eigen) while using gdb.


Solution

  • You have to install a gdb extension that you can find in eigen/debug/gdb/.

    The comment at the beginning of the file explains how to install it.