On Wed, Jul 9, 2008 at 1:57 PM, Hywel Richards <hywelbr@xxxxxxxxxxxxxx> wrote: > LD_LIBRARY_PATH=. LD_PROFILE=libmy.so ./mymain ... > $ sprof libmy.so /var/tmp/libmy.so.profile > sprof: failed to load shared object `libmy.so' Acutally I have no idea of what sprof is or does, but from the error message above it seems sprof cannot find your library because it is not in the default library search path. Try this: $ LD_LIBRARY_PATH=. sprof libmy.so /var/tmp/libmy.so.profile Let us know how that goes. HTH, Filipe _______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos