Mail Archives: djgpp/1998/01/15/09:51:39
Hi, Richard
In article <884867795 DOT 1346699269 AT dejanews DOT com> you wrote:
> Hi, when I'm compiling to profile using gcc -pg... or whatever, I get one
> of those messages saying '-lc_p: no such file or directory' mhen it gets
> to making the .exe.
With the regular DJGPP distribution (the 'specs' file and the linker
script, in particular), this wouldn't have occured. But ...
[...]
> I'm using the Pentium Optimized GCC if that changes anything.
Looks like you also have the installed 'specs' file from pgcc, which
is the cause of your problem. Re-install the original DJGPP specs
file (or, if you know how to, merge the two), and all should be well.
The problem is that DJGPP doesn't have a profiling version of
the libc (libc_p.a), so the magic that turns '-lc' into '-lc_p' if
you link with the '-pg' switch has to be disabled. Unless you're
willing to build your own profiling libc, that is :-)
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -