From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id D938F2F866 for ; Tue, 1 May 2001 23:50:26 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f423lRL17849 for axp-list@listman.redhat.com; Tue, 1 May 2001 23:47:27 -0400 Received: from w110.web2010.com (root@w110.web2010.com [216.157.57.254]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f423lRb17845 for ; Tue, 1 May 2001 23:47:27 -0400 Received: from jtcsv.com (ss06.co.us.ibm.com [32.97.110.71]) by w110.web2010.com (8.9.3/8.9.0) with ESMTP id XAA09495 for ; Tue, 1 May 2001 23:50:09 -0400 (EDT) Message-ID: <3AEF818F.53907E48@jtcsv.com> Date: Tue, 01 May 2001 20:39:59 -0700 From: Ram Viswanadha X-Mailer: Mozilla 4.5 [en] (WinNT; U) X-Accept-Language: en,zh,zh-TW,af,zh-CN,ja MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: help decript nm output. References: Content-Type: multipart/mixed; boundary="------------1A54B4B7E0D204F665D3B6A7" X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. --------------1A54B4B7E0D204F665D3B6A7 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Daniel, Thank you for your response. The function names are the same, for some reason CXX is producing different symbols. class U_COMMON_API UVector { public: typedef UBool (*Comparer)(void*, void*); Comparer setComparer(Comparer c); } UVector::Comparer UVector::setComparer(Comparer c) { Comparer old = comparer; comparer = c; return old; } /* other stuff */ } and in the other library I access the setComparer method: cacheIDs.setComparer(compareIDs); where compareIDs is: UBool Transliterator::compareIDs(void* a, void* b) { const UnicodeString* aa = (const UnicodeString*) a; const UnicodeString* bb = (const UnicodeString*) b; return *aa == *bb; } and cacheIDs is static UVector cacheIDs; On every other compiler I dont have the mentioned problem, but on CXX ...arrrgh! Ram "T. Daniel Crawford" wrote: > On Tue, 1 May 2001, Ram Viswanadha wrote: > > > Hi, > > Can anyone help me decipher this ? > > I am linking libicu18n.so with libicuuc.so, the error is that the linker > > finding undefined symbols. > > nm's output is given below: > > > > [raghu@ganesh source]# nm common/libicuuc.so | grep setComparer > > 0000000000057708 T __7setComparer__7UVectorFPFPvT1_Sc > > [raghu@ganesh source]# nm i18n/libicui18n.so | grep setComparer > > U __7setComparer__7UVectorFPFPvT1_c > > > > what is the difference here? > > > > Thanks in advance. > > > > Ram > > > > The "T" indicates the function is defined and the "U" indicates that > it's not. However, the two function names spat out by nm are slightly > different, are they not? > > -Daniel > > -- > T. Daniel Crawford Department of Chemistry > crawdad@vt.edu Virginia Tech > www.chem.vt.edu/chem-dept/crawford Voice: 540-231-7760 FAX: 540-231-3255 > -------------------- > PGP Public Key at: http://www.chem.vt.edu/chem-dept/crawford/publickey.txt > -------------------- > "An open mind, so we are told, lets in everything. But so does a garbage can." > -Michael Long > > _______________________________________________ > Axp-list mailing list > Axp-list@redhat.com > https://listman.redhat.com/mailman/listinfo/axp-list --------------1A54B4B7E0D204F665D3B6A7 Content-Type: text/x-vcard; charset=us-ascii; name="ram.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Ram Viswanadha Content-Disposition: attachment; filename="ram.vcf" begin:vcard n:Viswanadha;Ram x-mozilla-html:FALSE org:IBM;International Components for Unicode adr:;;;;;; version:2.1 email;internet:ram@jtcsv.com title:Unicode Software Engineer end:vcard --------------1A54B4B7E0D204F665D3B6A7--