Mail Archives: djgpp/1998/01/27/08:51:06
Gruber Gerhard <g DOT gruber AT sis DOT co DOT at> wrote:
> 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
I said it before, seems that my message was lost or you simply ovelooked it:
OPTIONS|LIBRARIES HAVE A PROFILE OPTION
Additionally be sure to read the FAQ about profiling.
SET
------------------------------------ 0 --------------------------------
Visit my home page: http://set-soft.home.ml.org/
or
http://www.geocities.com/SiliconValley/Vista/6552/
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Alternative e-mail: set-sot AT usa DOT net - ICQ: 2951574
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(541) 759 0013
- Raw text -