Hi, 
  I am using xml C++ parser, and I am using g++ (gcc
v2.95) on Solaris 2.6. 
  When I build, it complains lots of "undefined
symbol" in libxerces-c1_3.so, libicu-uc.so.
  I am wondering it is ok to compile my application
using g++ instead of using CC Workshop4.2 as the
document indicated.
  Any comments will welcome.
  Thanks.
  Jerry


g++ -g -D_REENTRANT -D_UNIX -DXML_SOLARIS
-I/export/home/liug/xml4c3_3_1-SolCC/include
-save-temps -o tt testt.c ntfileio.cpp 
parsererrorreporter.cpp  rtfint.cpp rtf.cpp
-L//export/home/liug/xml4c3_3_1-SolCC/lib -licu-uc
-licudata -lxerces-c1_3
In file included from
/export/home/liug/xml4c3_3_1-SolCC/include/util/XercesDefs.hpp:159,
                 from
/export/home/liug/xml4c3_3_1-SolCC/include/util/XMLString.hpp:117,
                 from
/export/home/liug/xml4c3_3_1-SolCC/include/sax/SAXException.hpp:96,
                 from
/export/home/liug/xml4c3_3_1-SolCC/include/sax/SAXParseException.hpp:83,
                 from parsererrorreporter.cpp:79:
/export/home/liug/xml4c3_3_1-SolCC/include/util/AutoSense.hpp:136:
warning: `XML_SOLARIS' redefined
*Initialization*:1: warning: this is the location of
the previous definition
In file included from
/export/home/liug/xml4c3_3_1-SolCC/include/util/XercesDefs.hpp:159,
                 from
/export/home/liug/xml4c3_3_1-SolCC/include/util/PlatformUtils.hpp:65,
                 from rtfint.h:12,
                 from rtfint.cpp:6:
/export/home/liug/xml4c3_3_1-SolCC/include/util/AutoSense.hpp:136:
warning: `XML_SOLARIS' redefined
*Initialization*:1: warning: this is the location of
the previous definition
In file included from
/export/home/liug/xml4c3_3_1-SolCC/include/util/XercesDefs.hpp:159,
                 from
/export/home/liug/xml4c3_3_1-SolCC/include/util/PlatformUtils.hpp:65,
                 from rtfint.h:12,
                 from rtf.cpp:5:
/export/home/liug/xml4c3_3_1-SolCC/include/util/AutoSense.hpp:136:
warning: `XML_SOLARIS' redefined
*Initialization*:1: warning: this is the location of
the previous definition
Undefined                       first referenced
 symbol                             in file
_ex_rethrow                        
//export/home/liug/xml4c3_3_1-SolCC/lib/libxerces-c1_3.so
__0oJ__RT_USERctPcPv               
//export/home/liug/xml4c3_3_1-SolCC/lib/libxerces-c1_3.so
__0OnwUi                           
//export/home/liug/xml4c3_3_1-SolCC/lib/libicu-uc.so
_ex_throw                          
//export/home/liug/xml4c3_3_1-SolCC/lib/libxerces-c1_3.so
DOM_Document::getDocumentElement(void) constrtfint.o
XMLPlatformUtils::Initialize(void)  rtfint.o
SAXParseException::getLineNumber(void)
constparsererrorreporter.o
__0oK__RT_CLASSctPcP6J__RT_BASEPv  
//export/home/liug/xml4c3_3_1-SolCC/lib/libxerces-c1_3.so
DOMString::operator=(DOMString const &)rtfint.o
DOM_NodeList::getLength(void) const rtfint.o
_ex_alloc                          
//export/home/liug/xml4c3_3_1-SolCC/lib/libxerces-c1_3.so
XMLException type_info function     rtfint.o
_ex_keylock                        
//export/home/liug/xml4c3_3_1-SolCC/lib/libxerces-c1_3.so
DOM_Node::getNodeValue(void) const  rtfint.o
__0oNIostream_initctv              
//export/home/liug/xml4c3_3_1-SolCC/lib/libicu-uc.so
XMLUni::fgNoSuchElementException_Name  rtfint.o
XMLException::loadExceptText(XMLExcepts::Codes)   
rtfint.o
DOM_Element::DOM_Element(DOM_Element const &)rtfint.o
DOM_NodeList::~DOM_NodeList(void)   rtfint.o
XMLEntityDecl type_info function    rtfint.o
_ex_rethrow_q                      
//export/home/liug/xml4c3_3_1-SolCC/lib/libicu-uc.so
_pure_error_                       
//export/home/liug/xml4c3_3_1-SolCC/lib/libicu-uc.so
XMLException::getMessage(void) constrtfint.o
DOM_Node::operator!=(DOM_NullPtr const *)
constrtfint.o
_ex_skip                           
//export/home/liug/xml4c3_3_1-SolCC/lib/libxerces-c1_3.so
DOMParser::~DOMParser(void)         rtfint.o
DOM_NodeList::item(unsigned int) constrtfint.o
_vector_delete_                    
//export/home/liug/xml4c3_3_1-SolCC/lib/libicu-uc.so
__0fHostreamFflushv                
//export/home/liug/xml4c3_3_1-SolCC/lib/libicu-uc.so
__0FK__rtbany_fv                   
//export/home/liug/xml4c3_3_1-SolCC/lib/libxerces-c1_3.so
DOM_NamedNodeMap::getNamedItem(DOMString const &)
constrtfint.o
__0fNstream_rmutexNrmutex_unlockv  
//export/home/liug/xml4c3_3_1-SolCC/lib/libicu-uc.so
XMLException type_info node         rtfint.o
__0oNIostream_initdtv              
//export/home/liug/xml4c3_3_1-SolCC/lib/libicu-uc.so
__0oJ__RT_BASEctP6J__RT_USERP6J__RT_BASEi65J__RT_BASEHac_modeTD
//export/home/liug/xml4c3_3_1-SolCC/lib/libxerces-c1_3.so
__0OdlPv                           
//export/home/liug/xml4c3_3_1-SolCC/lib/libicu-uc.so
__0fJstreambufOsputn_unlockedPCci  
//export/home/liug/xml4c3_3_1-SolCC/lib/libicu-uc.so
DOMParser::setDoValidation(bool)    rtfint.o
_vector_new_                       
//export/home/liug/xml4c3_3_1-SolCC/lib/libicu-uc.so
DOM_Document::~DOM_Document(void)   rtfint.o
SAXParseException::getColumnNumber(void)
constparsererrorreporter.o
_ex_clean                          
//export/home/liug/xml4c3_3_1-SolCC/lib/libxerces-c1_3.so
DOMParser::DOMParser(XMLValidator *)rtfint.o
_ex_get                            
//export/home/liug/xml4c3_3_1-SolCC/lib/libxerces-c1_3.so
DOM_Element::getElementsByTagName(DOMString const &)
constrtfint.o
__0FP__rtptr__rtbc_fv              
//export/home/liug/xml4c3_3_1-SolCC/lib/libxerces-c1_3.so
DOM_NamedNodeMap::~DOM_NamedNodeMap(void)rtfint.o
DOMString::DOMString(char const *)  rtfint.o
XMLException::XMLException(XMLException const
&)rtfint.o
SAXParseException::getSystemId(void)
constparsererrorreporter.o
DOMString::equals(wchar_t const *) constrtfint.o
DOMString::DOMString(wchar_t const
*)parsererrorreporter.o
DOM_Node::getAttributes(void) const rtfint.o
__0fKunsafe_iosIsetstatei          
//export/home/liug/xml4c3_3_1-SolCC/lib/libicu-uc.so
DOM_Element::~DOM_Element(void)     rtfint.o
DOMString::~DOMString(void)        
parsererrorreporter.o
DOM_Node::operator=(DOM_Node const &)rtfint.o
DOMParser::parse(char const *, bool)rtfint.o
XMLEntityDecl type_info node        rtfint.o
DOMString::transcode(void) const   
parsererrorreporter.o
XMLException::XMLException(char const *, unsigned
int)rtfint.o
DOMParser::setErrorHandler(ErrorHandler *) rtfint.o
DOMParser::getDocument(void)        rtfint.o
XMLException::~XMLException(void)   rtfint.o
__0fNstream_rmutexLrmutex_lockv    
//export/home/liug/xml4c3_3_1-SolCC/lib/libicu-uc.so
DOM_Node::~DOM_Node(void)           rtfint.o
ld: fatal: Symbol referencing errors. No output
written to tt
collect2: ld returned 1 exit status
make: *** [t] Error 1


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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

Reply via email to