Project

General

Profile

Actions

Bug #2325

closed

compiling c++ program in profile mode doesn't work

Added by phma over 12 years ago. Updated over 12 years ago.

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

proftest.cpp (225 Bytes) proftest.cpp phma, 03/03/2012 06:20 PM
Actions #1

Updated by swildner over 12 years ago

Pierre,

I've committed a fix to master. Please try again.

Regards,
Sascha

Actions #2

Updated by alexh over 12 years ago

  • Status changed from New to Feedback
Actions #3

Updated by phma over 12 years ago

  • Status changed from Feedback to Closed

Fixed. Thanks!

Actions

Also available in: Atom PDF