This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Is profiling broken?
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: Mark Blackburn <marklist at fangorn dot ca>
- Cc: cygwin at cygwin dot com
- Date: Wed, 13 Aug 2003 17:40:34 -0400 (EDT)
- Subject: Re: Is profiling broken?
- Reply-to: cygwin at cygwin dot com
On Wed, 13 Aug 2003, Mark Blackburn wrote:
> Whenever I try to compile with gcc -p I get "undefined reference to
> `mcount'".
Try "gcc -pg".
Igor
P.S. BTW, libgmon.a defines "_mcount", as well as "_monstartup", but "gcc
-p" seems to want "__monstartup", so "gcc -p ... -lgmon" doesn't work.
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster." -- Patrick Naughton
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/