delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:message-id:date:from:reply-to:mime-version:to | |
:subject:references:in-reply-to:content-type | |
:content-transfer-encoding; q=dns; s=default; b=dq44AjchZiFKu+wZ | |
lAWKlvdBVql28Y3dfggxuIZAD+uI2JH8FJd1b6yudBDXDgyVDyuI4Sl576+37mJo | |
PJZDEqNMWVciU8SqYjpKhXaS7Wb3Nd6m/0nyUMSj9BrhgMXfGBpkVm2J9mALOL+v | |
DHaefDZYfr9+tCrOu+SGVAi9/TY= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:message-id:date:from:reply-to:mime-version:to | |
:subject:references:in-reply-to:content-type | |
:content-transfer-encoding; s=default; bh=B69zNn/d5LJnBOhAPaHjns | |
GPGNg=; b=Gvr8IZFyW+2MjVEAq+uu+00ibUpT7Gv3XAMa/8/HozUvxhjFCWTzvC | |
CFjc5MPMQjjT6Zp9+joa8EKR50SVHCflXYjV/8NnTKhkJCDe58AZWtmslvg4fTf5 | |
hadZ9QsYSgmaa9C/qDdd4Wgr95wp2lR6IgI6gVXEMfci5MbAnQj7k= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
X-Spam-SWARE-Status: | No, score=3.4 required=5.0 tests=AWL,BAYES_50,BOTNET,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE autolearn=no version=3.3.1 |
Message-id: | <51BF3EC0.4040906@cygwin.com> |
Date: | Mon, 17 Jun 2013 12:52:16 -0400 |
From: | "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com> |
Reply-to: | cygwin AT cygwin DOT com |
User-Agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 |
MIME-version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: What is a good profiling tool ? - problem with gprof |
References: | <2CF6002E09D8F54E9839DA08786D3200958D7B7A AT EX10-LIVE-MBN2 DOT ad DOT kent DOT ac DOT uk> |
In-reply-to: | <2CF6002E09D8F54E9839DA08786D3200958D7B7A@EX10-LIVE-MBN2.ad.kent.ac.uk> |
On 6/17/2013 12:19 PM, J.B.W.Webber wrote: > Hi, I am trying to find in which function call the most time is being spent. > > I am using gcc and trying to compile and link with -g and -pg. > i.e. for a trivial test : > > $ cat helloworld.c > /* Hello World program */ > #include<stdio.h> > main() > { > printf("Hello World\n"); > } > > $ gcc -g -pg -c helloworld.c > $ gcc -pg helloworld.o > helloworld.o: In function `main': > helloworld.c:6: undefined reference to `_mcount' > collect2: ld returned 1 exit status > > Any ideas ? Am I missing a .h call ? Or do I need to link to something ? Worked for me. Perhaps your Strawberry gcc installation is interfering. -- Larry _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |