This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: link error
- To: "Psycho Sphere" <psychosphere2k at hotmail dot com>, <cygwin at cygwin dot com>
- Subject: Re: link error
- From: "Tim Prince" <tprince at computer dot org>
- Date: Wed, 19 Sep 2001 15:49:28 -0700
- References: <F244C9guA8M6XQQez1e00014f4a@hotmail.com>
If you're using the gcc command to link a C program, it should
work if you include -pg. Some other languages (e.g. f77) require
you to build a copy of their library (libg2c.a in that case)
with -pg and link against that copy, again specifying -pg for
both compile and link.
----- Original Message -----
From: "Psycho Sphere" <psychosphere2k@hotmail.com>
To: <cygwin@cygwin.com>
Sent: Wednesday, September 19, 2001 2:08 PM
Subject: link error
> Why when I try to link my program with profiling enabled (no
libraries other
> than libc) I get unresolved references to 'mcount'?
>
> Any help would be great...
>
> Thanx
>
> Psycho2K
>
>
_________________________________________________________________
> Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp
>
>
> --
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ: http://cygwin.com/faq/
>
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/