Try finding the right header files and link options by looking at the
man pages for these calls ("man -s3C towupper", "man -s3C iswspace").
On Solaris 8 this will tell you that you need to "#include <wchar.h>".

The source file using these functions is
$XERCESCROOT/src/util/Transcoders/IconvTransService.cpp. This file
currently includes <wchar.h>, but you might need to add an additional
include file for Solaris 2.6. Read the man-pages and look for warnings
when you run gmake.

To find out if you need to add another library when linking, first see
if the man pages gives you any info. Otherwise, search for these
symbols in /usr/lib with the following command:
nm -A /usr/lib/lib*.so | egrep "towupper|iswspace" | grep -v "UNDEF"
(You want the last grep to filter out libraries _using_ the functions,
just as your libxerces-c1_2.so does.)

This might give a bit of noise, but on Solaris 2.8 it is pretty
obvious that these functions live in /usr/lib/libc.so, which gets
picked up at link time with the "-lc" option. If you find the symbols
in libfoo.so, just add "-lfoo" to your platform/compiler specific
ALLLIBS= in $XERCESCROOT/src/Makefile.incl.

Hope this helps,
 Martin.

----- Original Message -----
From: "Rajah, PushpamX" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, May 12, 2001 6:50 AM
Subject: Help : Compiling in Solaris Sparc 2.6


> I tried building Xercesc 1.2 in Solaris 2.6 sparc.  it has been
compiled and
> .so file has created successfully.  But when I tried to use library
in my
> project it is giving the following error while linking
>
> /usr/syamala/Xerces/xerces-c-src_1_2_0/lib/libxerces-c1_2.so:
undefined
> reference to `[EMAIL PROTECTED]'
> /usr/syamala/Xerces/xerces-c-src_1_2_0/lib/libxerces-c1_2.so:
undefined
> reference to `[EMAIL PROTECTED]'



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to