PDA

View Full Version : gprof does not work with libc_p libraries in ubuntu?


achillez
November 12th, 2006, 03:41 AM
Hi all,

I've tried some experiments with the latest Ubuntu and I can't seem to properly link in the gprof'd standard libraries. The standard gprof'd libraries aren't linked in when I do:

gcc -g -pg -o testme testme.c

Then when I try to link them in I get:

gcc -g -pg -o testme testme.c -lc_p
> testme
> Floating point exception (core dumped)

Then when I try to remove standard libs, I get a link error (can't find _Unwind_resume):

gcc -g -pg -o testme testme.c -nodefaultlibs -lc_p -lgcc

Any help here would be appreciated

cmacdonell
March 27th, 2007, 05:18 PM
Hi,

I have this same error, we're you ever able to resolve it?

Thanks,
Cam

hod139
March 27th, 2007, 05:56 PM
You should check our callgrind. It is in my opinion superior to g_prof.