You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Qin Lu <QL...@lgc.com> on 2002/03/28 23:59:32 UTC

stricmp in Linux

Hi there,

I compiled xerces-c1_5_1 using g++3 (version 3.01) successfully in Redhat
Linux (version 7.2), but got following error message when linking to my
application (using the same compiler):

===============
.../lib/Xerces/xerces-c-src1_5_1/lib/LINUX/libxerces-c1_5_1.so: undefined
reference to 'stricmp(char const*, char const*)'

.../lib/Xerces/xerces-c-src1_5_1/lib/LINUX/libxerces-c1_5_1.so: undefined
reference to 'strnicmp(char const*, char const*)'
===============

Do you have any idea what is wrong? 

Thanks a lot for your help!

-- Lu



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Re: stricmp in Linux

Posted by Brad Settlemyer <bw...@cox.rr.com>.
If your system libraries were compiled with an older version of gcc, I 
suggest you give up on GCC3.

Though I think it may be possible, xerces uses several platform libs and the 
link error resolution wasn't worth the effort imo.

At the very least you would probably need to recompile without threads.

It may be possible to compile with the new gcc, but link with the older 
compiler (that is how xerces samples work, if you compile with gcc3), but in 
the end I didn't want to recompile every library on my system to use the new 
compiler.

Brad

On Thursday 28 March 2002 05:59 pm, you wrote:
> Hi there,
>
> I compiled xerces-c1_5_1 using g++3 (version 3.01) successfully in Redhat
> Linux (version 7.2), but got following error message when linking to my
> application (using the same compiler):
>
> ===============
> .../lib/Xerces/xerces-c-src1_5_1/lib/LINUX/libxerces-c1_5_1.so: undefined
> reference to 'stricmp(char const*, char const*)'
>
> .../lib/Xerces/xerces-c-src1_5_1/lib/LINUX/libxerces-c1_5_1.so: undefined
> reference to 'strnicmp(char const*, char const*)'
> ===============
>
> Do you have any idea what is wrong?
>
> Thanks a lot for your help!
>
> -- Lu
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org