Hi carl
The stricmp and strnicmp are indeed defined in SunCCDefs.cpp . They just
return the native strcasecmp and strncasecmp functions , as would be
expected. What i dont understand is that , it is when I try to link to my
C++ program , I get the errors about undefined symbols. Somehow it is
trying to search the standard C libraries .
These functions have been used just in one place within the xerces lib , in
XMLString.cpp. When I comment that code and ask it to use the regular
strcasecmp etc there is no problem.
What i do not understand is that Why is it not able to find the function in
the library. Also a command nm (library name ) shows that the symbol is
defined ,
So I am kind of confused. I will try to do what you suggested
Thanks For your help
Aniruddha
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 2:50 PM
To: [EMAIL PROTECTED]
Subject: Re: Xerces-c1_4 : Problems linking with libxerces-c1_4.so on
SunOS 5. 6
Aniruddha,
I've built earlier versions of Xerces (1.3) on Solaris 2.6/5.6
using the 4.2 compiler with no problems. But I have not tried
to upgrade yet to the 1.4 or 1.5 versions.
Solaris does have the equivalent functions in the string library.
You can use strcasecmp and strncasecmp instead. You might also
want to either #define these as replacements for the Xerces
functions, or typedef them in as aliases.
But I'm surprised that you are seeing this problem at all. It
would be more likely that there is something wrong with your
configuration, and that is preventing the correct definition
of the functions.
Does your SunCCDefs.hpp file actually define these functions?
And if not, can you find where they were supposed to be generated?
I suspect that someone else from the list will jump in with a
solution, but in case you didn't know about the xxx_casecmp
functions, I wanted to tell you about them.
All you need to do to use them is include <strings.h>.
Regards,
--Carl
Aniruddha Shevade <[EMAIL PROTECTED]> on 07/10/2001 03:37:12 PM
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc:
Subject: Xerces-c1_4 : Problems linking with libxerces-c1_4.so on SunOS 5.
6
Hello
I built the xerces library on SunOS 5.6 using CC compiler 4.2 .The
library was built using the runConfigure utility and gmake.
When I am trying to link my application to the library I get the following
error messages
Undefined
first referenced
symbol in
file
int stricmp(const char*const,const char*const)
SunOS/lib/libxerces-c1_4.so
int strnicmp(const char*const,const char*const,const unsigned)
SunOS/lib/libxerces-c1_4.so
ld: fatal: Symbol referencing errors. No output written to SunOS/admserv6
*** Error code 1
make: Fatal error: Command failed for target `SunOS/admserv6'
These two funtions have been defined for each platform in a platform
specific file . And in the present case the XMLString.cpp which uses these
function is supposed to include the appropriate header file .
(util/compilers/SunCCDefs.hpp). Is there any reason that this file is not
being
included. I also browsed the <util/XercesDefs.hpp> and
<util/AutoSense.hpp>,
which decide which header files to include
All the necessary conditions for inclusion of the approprate header file
(SunCCDefs.hpp) seem to be met.
Any advice in this case would be greatly appreciated
Thanks in advance
Aniruddha
Actuate Corporation
mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]