Mail Archives: djgpp/1998/01/27/08:17:36
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
- Raw text -