更新时间:2023-12-04 21:54:28
是我几天前遇到的问题,还没有关于SO的通用答案。只有特殊情况。以下是我在此页面上找到的答案: http://www.gnu.org/软件/ libtool / manual / html_node / Debugging-executables.html
This is problem I ran into a couples of days ago and there is no generic answer on SO yet. Only special cases. Here is the answer I found on this page: http://www.gnu.org/software/libtool/manual/html_node/Debugging-executables.html
在程序安装之前,系统不知道在哪里查找共享对象。它们通常位于其源文件夹的 .libs
子目录中。
Until the program is installed, the system does not know where to look for the shared objects. They usually lies in .libs
sub-directory of their source folder.
Libtool生成一个方便的脚本,以便在实际安装完成之前进行调试(谁想要在之前安装错误软件,调试它
Libtool generates a convenience script to allow debugging before the actual installation is done (who wants to install buggy software before, debug it after?)
幸运的是,生成的脚本为此提供了一个帮助器:
Fortunately, the generated script provides a helper for this:
libtool --mode=execute gdb test_mylib