Date: Mon, 30 Oct 1995 15:14:44 +0200 (IST) From: Eli Zaretskii To: zcacbb1 AT cs DOT ucl DOT ac DOT uk Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: library error On Mon, 30 Oct 1995, Benedict Baylis wrote: > Several different compiles that use the libc.a library have failed, > with a reference: > access.c undefined reference to mcount > or something similar > > I amn using 112m4. `mcount' is a symbol which is used for profiling. It is defined in the profiling version of crt0.s which gets linked only of you use -pg option to gcc. It seems that your library is really libc_p.a, not libc.a, that somehow got renamed to libc.a, and so the functions there need `mcount' they cannot find.