From: Ram Viswanadha <ram@jtcsv.com>
To: axp-list@redhat.com
Subject: Re: help decript nm output.
Date: Tue, 01 May 2001 20:39:59 -0700 [thread overview]
Message-ID: <3AEF818F.53907E48@jtcsv.com> (raw)
In-Reply-To: Pine.LNX.4.30.0105012329540.3127-100000@orion.chem.vt.edu
[-- Attachment #1: Type: text/plain, Size: 2295 bytes --]
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
[-- Attachment #2: Card for Ram Viswanadha --]
[-- Type: text/x-vcard, Size: 190 bytes --]
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
next prev parent reply other threads:[~2001-05-02 3:50 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-02 3:15 help decript nm output Ram Viswanadha
2001-05-02 3:31 ` T. Daniel Crawford
2001-05-02 3:39 ` Ram Viswanadha [this message]
2001-05-02 11:16 ` Richard Polton
2001-05-02 3:38 ` Michal Jaegermann
2001-05-02 3:42 ` Ram Viswanadha
2001-05-02 13:33 ` Chris Eleveld (Sector 7 Group)
2001-05-03 2:19 ` Ram Viswanadha
2001-05-02 13:36 ` Chris Eleveld (Sector 7 Group)
2001-05-02 15:05 ` Michal Jaegermann
2001-05-02 16:00 ` Christopher C. Chimelis
2001-05-02 5:11 ` Alan Young
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox