X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 	tests=AWL,BAYES_00,UNPARSEABLE_RELAY
X-Spam-Check-By: sourceware.org
X-Yahoo-SMTP: mjD.OBqswBAPbVUxYJaYPvc61jLEnpq8VnBwJGdbEJOPA9xw
Message-ID: <4B639C9C.3010101@sbcglobal.net>
Date: Sat, 30 Jan 2010 02:42:36 +0000
From: Greg Chicares <gchicares@sbcglobal.net>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Problems linking--"undefined reference to..."
References: <BAY127-W1749E0512E2F4772BE7B7EC55A0@phx.gbl>
In-Reply-To: <BAY127-W1749E0512E2F4772BE7B7EC55A0@phx.gbl>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 2010-01-30 01:49Z, Peter Mills wrote:
> 
> g++
>  -I/home/Petey/include -Wno-deprecated -O2  -o model2 model2.cc 
> traj_int_obj.o tcoord_defs.o -L/home/Petey/lib -ldataset-O2 -lpetey 
> -lsparse-O2 -lgsl -lgslcblas
> model2.cc: In function `int main(int, 
> char**)':
[...]
> traj_int_obj.o:traj_int_obj.cc:(.text+0x12): undefined 
> reference to `_mcount'

'_mcount' is used by gprof. If an object file was built with '-pg',
then you need to use '-pg' for linking, too.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

