delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/09/15:02:30

From: broeker AT acp3bf DOT knirsch DOT de (Hans-Bernhard Broeker)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Problem while profiling
Date: 9 Dec 1999 19:43:40 +0100
Organization: RWTH Aachen, III. physikalisches Institut B
Message-ID: <82ot8s$h30@acp3bf.knirsch.de>
References: <384FE19B DOT 70931C03 AT ndc DOT vsnl DOT net DOT in>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 944765026 19930 137.226.32.75 (9 Dec 1999 18:43:46 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 9 Dec 1999 18:43:46 GMT
X-Newsreader: TIN [version 1.2 PL2]
Lines: 18
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Anuj Bhatia (anujb AT ndc DOT vsnl DOT net DOT in) wrote:
> I'm trying to set the -pg switch in RHIDE for profiling my program.

> But RHIDE uses the -pg switch only while compiling and not while linking
> the program. When I add the -pg switch in Options|Linker Options the
> linker gives me an error saying
> it doesn't understand the option.

That's because the linker itself does not understand '-pg'. It's the
linking step of gcc that need this flag, and so it's up to RHIDE
to pass it. 

If memory serves, the necessary setting is on the 'libraries' page.
A checkbox 'link for profiling', or so. Go figure.

-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019