From owner-freebsd-questions Wed Nov 27 7:14:23 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B1ADC37B401 for ; Wed, 27 Nov 2002 07:14:21 -0800 (PST) Received: from scaup.mail.pas.earthlink.net (scaup.mail.pas.earthlink.net [207.217.120.49]) by mx1.FreeBSD.org (Postfix) with ESMTP id 65C1143E4A for ; Wed, 27 Nov 2002 07:14:21 -0800 (PST) (envelope-from mikemcg@ucla.edu) Received: from pool0227.cvx36-bradley.dialup.earthlink.net ([216.244.18.227] helo=NEELIX) by scaup.mail.pas.earthlink.net with smtp (Exim 3.33 #1) id 18H3tM-0007M8-00 for freebsd-questions@freebsd.org; Wed, 27 Nov 2002 07:14:21 -0800 Message-ID: <004601c29627$ab245090$1a00a8c0@HOME> From: "Mike McGranahan" To: Subject: undefined references Date: Wed, 27 Nov 2002 07:14:22 -0800 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 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG hello, i am trying to compile c++ code originally compiled on msvc++ on freebsd-4.6.2-release. i'm relatively new to freebsd, and this is my first attempt at coding on this platform. there are three source files, all of which compile. however, when i try to link them together, i get undefined references and other errors, such as retrquote.o: In function `main': retrquote.o(.text+0x27): undefined reference to `endl(ostream &)' retrquote.o(.text+0x34): undefined reference to `cerr' retrquote.o(.text+0x39): undefined reference to `ostream::operator<<(char const *)' retrquote.o(.text+0x44): undefined reference to `ostream::operator<<(ostream &(*)(ostream &))' retrquote.o(.text+0x83): undefined reference to `XMLPlatformUtils::Initialize(void)' retrquote.o(.text+0x23a): undefined reference to `LocalFileInputSource::LocalFileInputSource(unsigned short const *)' retrquote.o(.text+0x3d1): undefined reference to `XMLPlatformUtils::Terminate(void)' retrquote.o(.text+0x413): undefined reference to `XMLException type_info function' retrquote.o(.text+0x478): undefined reference to `endl(ostream &)' [cut] retrquote.o: In function `NameIdPool::findBucketElem(unsigned short const *, unsigned int &)': retrquote.o(.gnu.linkonce.t.findBucketElem__t10NameIdPool1Z13DTDEntityDeclPC UsRUi+0x26): undefined reference to `XMLString::hash(unsigned short const *, unsigned int)' retrquote.o(.gnu.linkonce.t.findBucketElem__t10NameIdPool1Z13DTDEntityDeclPC UsRUi+0x155): undefined reference to `XMLEntityDecl::getKey(void) const' retrquote.o(.gnu.linkonce.t.findBucketElem__t10NameIdPool1Z13DTDEntityDeclPC UsRUi+0x164): undefined reference to `XMLString::compareString(unsigned short const *, unsigned short const *)' retrquote.o: In function `NameIdPool::put(DTDEntityDecl *)': retrquote.o(.gnu.linkonce.t.put__t10NameIdPool1Z13DTDEntityDeclP13DTDEntityD ecl+0x2c): undefined reference to `XMLEntityDecl::getKey(void) const' [cut] perhaps it's not finding the right libraries? i can post the source if it will help. all help is appreciated. mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message