On Thu, 2008-05-15 at 14:19 +0100, Joe Bloggs wrote: > I am using gdb to debug my code, and I want to step into a gsl function to > see what's going on exactly (gsl_multimin_fdfminimizer_iterate). > I have installed the debug symbols and development packages, but gdb can't > find the associated source code, and neither can I: > > gsl_multimin_fdfminimizer_iterate (s=0x80a8f70) at fdfminimizer.c:133 > 133 fdfminimizer.c: No such file or directory. > in fdfminimizer.c > > I am using Debian etch. > Can anyone help? >
I am a long time user of gdb. You can't "install debug symbols". All of the source code must be compiled with the gdb or -g option. You need a special makefile or compile and link all of the source code at once including your top level api. I am not sure if gdb can use libraries (of the gsl code) so I would stick strictly with the source code compiled and linked in the same directory. I would strongly recommend not using shared libraries with gdb but rather use static. That should fix the problem once you have mastered the compile and link without errors. -- Jack Denman <[EMAIL PROTECTED]> _______________________________________________ Help-gsl mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-gsl
