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 8F0E42FBF3 for ; Wed, 2 May 2001 07:17:05 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f42BE7e07587 for axp-list@listman.redhat.com; Wed, 2 May 2001 07:14:07 -0400 Received: from pivsbh1.ms.com (pivsbh1-x0.ms.com [199.89.64.101]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f42BE6b07583 for ; Wed, 2 May 2001 07:14:06 -0400 Received: (from uucp@localhost) by pivsbh1.ms.com (8.11.3/8.11.3) id f42BGo307852 for ; Wed, 2 May 2001 07:16:50 -0400 (EDT) Received: from localhost(127.0.0.1) by pivsbh1 via smap (4.1) id sma.9888022091.007817; Wed, 2 May 01 07:16:49 -0400 Received: (from uucp@localhost) by pivsbh1.ms.com (8.11.3/8.11.3) id f42BGnT07792 for ; Wed, 2 May 2001 07:16:49 -0400 (EDT) Received: from unknown(138.20.13.27) by pivsbh1 via smap (4.1) id sma.9888022071.007742; Wed, 2 May 01 07:16:47 -0400 Received: from morganstanley.com (ha017687.morgan.com [172.16.87.195]) by cwsmh1.ms.com (8.8.5/imap+ldap v2.4) with ESMTP id MAA09552 for ; Wed, 2 May 2001 12:16:46 +0100 (BST) Message-ID: <3AEFEC9E.C56E8AC7@morganstanley.com> Date: Wed, 02 May 2001 12:16:47 +0100 From: Richard Polton Organization: Morgan Stanley X-Mailer: Mozilla 4.75 [en]C-CCK-MCD MS4.75 V20001029.1 (WinNT; U) X-Accept-Language: en,ja MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: help decript nm output. References: <3AEF818F.53907E48@jtcsv.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 X-Reply-To: Richard.Polton@morganstanley.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: The only thing I can see which might make a difference is this: try UVector::Comparer UVector::setComparer( UVector::Comparer c) instead of UVector::Comparer UVector::setComparer(Comparer c) Richard Ram Viswanadha wrote: > 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