Date: Thu, 15 Jan 1998 15:48:02 +0100 From: Hans-Bernhard Broeker Message-Id: <199801151448.PAA04786@acp3bf.physik.rwth-aachen.de> To: richard AT hyper DOT net DOT au (Richard Sim) Cc: djgpp AT delorie DOT com Subject: Re: Compiling to profile -lc_p no such file or directory Newsgroups: comp.os.msdos.djgpp Organization: RWTH Aachen, III. physikalisches Institut B Precedence: bulk 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.