From: Gruber Gerhard Newsgroups: comp.os.msdos.djgpp Subject: Re: RHIDE 1.4 and profiling Date: Tue, 27 Jan 1998 13:43:29 +0100 Organization: APAnet Lines: 40 Message-ID: <34CDD670.110E7B3E@sis.co.at> References: <34CC8FFA DOT B58ED641 AT sis DOT co DOT at> <34CD02BA DOT CC423F10 AT gmx DOT net> NNTP-Posting-Host: 192.56.14.75 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 Robert Hoehne wrote: > > Gruber Gerhard wrote : > > > [...] > > Any comments? > > Yes! Please describe _exact_ what you did, and _exact_ what an error > you got. One sourcefile as project. Options/Compilers/Debugging/-pg [x] Options/Linker Options/ -pg This leads to the commandline: // this is ok. gcc -g -pg -c damen.c -o damen.o // this is not ok because the linker says 'unrecognized option -pg' which is true. ld -Xlinker -pg -o damen.exe damen.o Removing the -pg from the "Linker Options" results in: gcc -g -pg -c damen.c -o damen.o gcc -o damen.exe damen.o Which means that there is no profiling activated because the -pg option has to be passed on to the linker. The second call should read (in this case) gcc -pg -o damen.exe damen.o -- Bye, Gerhard email: gruber2 AT ibm DOT net g DOT gruber AT sis DOT co DOT at FIDO: Gruber_Gerhard AT 2:310/81.11