cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/06/20:05:38

Mime-Version: 1.0
To: wjae AT plex DOT nl (Wiel Aerts), djgpp AT delorie DOT com
From: Nate Eldredge <nate AT cartsys DOT com>
Subject: Re: profiling, missing libc_p.a ?
Date: Wed, 6 May 1998 17:01:19 -0700
Message-ID: <19980507000106.AAE15093@ppp101.cartsys.com>

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019