Mail Archives: djgpp/1998/05/06/20:05:38
At 05:52 5/6/1998 GMT, Wiel Aerts wrote:
>
>I tried to profile a short program. I compiled/linked
>with:
>g++ -pg test.cc -o prog.exe
>
>The linker complained:
>
> ld c:/djgpp/lib/gcrt0.o -Lc:/djgpp/lib/gcc-lib/djgpp/2.80
>-Lc:/djgpp/lib -lstdcxx -lm -lgcc -lc_p -lgcc
>C:\DJGPP\BIN/ld.exe: cannot open -lc_p: No such file or directory
>(ENOENT)
>
>I searched my system after the file: libc_p.a. This file doesn't exist
>on my computer (so it's not a problem with djgpp.env, I think)
>Where can i get this file?
Please post the entire output of `gcc -v -pg test.cc'. I think this is due
to a snafu in the DJGPP specs file. In particular, if you have removed any
lines from DJGPP.ENV, as the README for GCC 2.8.0 erroneously says to do,
put them back.
You can also work around this problem by just copying c:\djgpp\lib\libc.a to
c:\djgpp\lib\libc_p.a.
Nate Eldredge
nate AT cartsys DOT com
- Raw text -