This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: link error


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]