将 GDB 与 Eigen C++ 库一起使用 [英] Using GDB with Eigen C++ library

查看:39
本文介绍了将 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.

这篇关于将 GDB 与 Eigen C++ 库一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆