将 GDB 与 Eigen C++ 库一起使用
我正在使用可从 http://eigen.tuxfamily.org/ 下载的 Eigen C++ 库.这是一个 C++ 库,用于更轻松地处理矩阵和数组.我使用 g++ 编译器和 gdb 进行调试.但是,我发现在使用 gdb 时我无法打印 Matrix 的内容(由 Eigen 提供).
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.
推荐答案
你必须安装一个 gdb 扩展,你可以在 eigen/debug/gdb/.
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.
相关文章