From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: About DJGPP v2.02 Date: Thu, 09 Jul 1998 00:02:10 -0400 Organization: Two pounds of chaos and a pinch of salt. Lines: 27 Message-ID: <35A440C2.31E567F7@cs.com> References: NNTP-Posting-Host: ppp132.cs.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Endlisnis wrote: > > I use rhide to compile my code. Could someone tell me how to set > rhide to create exe's that make profiling information OR tell me the > commandline equivalent? > The FAQ says to use "-pg" as a switch to the compiler AND the > linker, but if I set that as a linker option in rhide, it says > "f:/djgpp/bin\ld.exe: unrecognized option `-pg'". And I know the FAQ says > not to use ld.exe directly, but I don't know how else. RHIDE used to have an option named "Compile for profiling", or something similar. Now, it seems that '-pg' is available as a flag under Options|Compiler|Debugging. Looking over the flags in this menu, it seems that RHIDE must know which to apply to the linking stage and which to apply to the compilation stage, and which to both. So just check that box for '-pg' and it should work. If it does not work, then it's a bug and should be reported (if not already known). -- --------------------------------------------------------------------- | John M. Aldrich |"A competent and self-confident person| | aka Fighteer I | is incapable of jealousy in anything.| | mailto:fighteer AT cs DOT com | Jealousy is invariably a symptom of | | http://www.cs.com/fighteer | neurotic insecurity." - Lazarus Long| ---------------------------------------------------------------------