X-Recipient: archive-cygwin AT delorie DOT 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 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Problems linking--"undefined reference to..." References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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