Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <016701c1415d$57ae76e0$7edd18ac@amr.corp.intel.com> From: "Tim Prince" To: "Psycho Sphere" , References: Subject: Re: link error Date: Wed, 19 Sep 2001 15:49:28 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 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" To: 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/