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
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