Is profiling broken?

Igor Pechtchanski pechtcha@cs.nyu.edu
Wed Aug 13 22:15:00 GMT 2003


On 2003年8月13日, 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/


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /