Actions
Bug #2325
closedcompiling c++ program in profile mode doesn't work
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
03/03/2012
Due date:
% Done:
0%
Estimated time:
Description
phma@darner:/tmp$ g++ -pg -o proftest proftest.cpp
/usr/libexec/binutils222/elf/ld.bfd: cannot find -lm_p
phma@darner:/tmp$ g++ -p -o proftest proftest.cpp
consider using '-pg' instead of '-p' with gprof(1)
/usr/libexec/binutils222/elf/ld.bfd: cannot find -lm_p
The same command succeeds on Linux. I noticed this when trying to profile a much larger program which is a CMake project; the attached program is a minimal program for getting anything useful out of gprof (or would if the loop count were bigger).
Files
Updated by swildner almost 13 years ago
Pierre,
I've committed a fix to master. Please try again.
Regards,
Sascha
Actions