delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/19/18:50:21

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
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" <tprince AT computer DOT org>
To: "Psycho Sphere" <psychosphere2k AT hotmail DOT com>, <cygwin AT cygwin DOT com>
References: <F244C9guA8M6XQQez1e00014f4a AT hotmail DOT com>
Subject: Re: link error
Date: Wed, 19 Sep 2001 15:49:28 -0700
MIME-Version: 1.0
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" <psychosphere2k AT hotmail DOT com>
To: <cygwin AT cygwin DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019