Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Richard Polton <Richard.Polton@morganstanley.com>
To: axp-list@redhat.com
Subject: Re: help decript nm output.
Date: Wed, 02 May 2001 12:16:47 +0100	[thread overview]
Message-ID: <3AEFEC9E.C56E8AC7@morganstanley.com> (raw)
In-Reply-To: 3AEF818F.53907E48@jtcsv.com

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




  reply	other threads:[~2001-05-02 11:17 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
2001-05-02 11:16     ` Richard Polton [this message]
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