[xsd-users] Error compiling char-utf8.txx with Solaris Studio 12.4 c++11

Bernie Harris Bernard.T.Harris at nasa.gov
Wed Apr 6 09:14:20 EDT 2016


Thanks, that fixed the compile error.  Now I've got this
> $ gmake XSDFLAGS="--std c++11" CXX=CC 
> CPPFLAGS="-I/usr/local/xerces-c/include" CXXFLAGS="-std=c++11" 
> LDFLAGS="-L /usr/local/xerces-c/lib -R />
> CC -std=c++11 -L /usr/local/xerces-c/lib -R /usr/local/xerces-c/lib -o 
> driver driver.o library.o -lxerces-c
> Undefined                       first referenced
>  symbol                             in file
> typeinfo for xercesc_3_1::DOMLSException library.o
> [Hint: static member typeinfo for xercesc_3_1::DOMLSException must be 
> defined in the program]
>
> xercesc_3_1::InputSource::setSystemId(const unsigned short*) library.o
> xercesc_3_1::XMLUni::fgDOMXMLDeclaration library.o
> [Hint: static member xercesc_3_1::XMLUni::fgDOMXMLDeclaration must be 
> defined in the program]
>
> xercesc_3_1::XMLUni::fgDOMElementContentWhitespace library.o
> [Hint: static member 
> xercesc_3_1::XMLUni::fgDOMElementContentWhitespace must be defined in 
> the program]
>
> typeinfo for xercesc_3_1::BinInputStream library.o
> [Hint: static member typeinfo for xercesc_3_1::BinInputStream must be 
> defined in the program]
>
> xercesc_3_1::XMLUni::fgXMLNSURIName library.o
> [Hint: static member xercesc_3_1::XMLUni::fgXMLNSURIName must be 
> defined in the program]
>
> xercesc_3_1::XMemory::operator delete(void*)       library.o
> xercesc_3_1::XMLUni::fgDOMEntities library.o
> [Hint: static member xercesc_3_1::XMLUni::fgDOMEntities must be 
> defined in the program]
>
> xercesc_3_1::SchemaSymbols::fgXSI_SCHEMALOCACTION library.o
> [Hint: static member xercesc_3_1::SchemaSymbols::fgXSI_SCHEMALOCACTION 
> must be defined in the program]
>
> xercesc_3_1::InputSource::~InputSource()   library.o
> xercesc_3_1::BinInputStream::BinInputStream() library.o
> xercesc_3_1::BinInputStream::~BinInputStream() library.o
> xercesc_3_1::XMLUni::fgXercesUserAdoptsDOMDocument library.o
> [Hint: static member 
> xercesc_3_1::XMLUni::fgXercesUserAdoptsDOMDocument must be defined in 
> the program]
>
> xercesc_3_1::InputSource::InputSource(xercesc_3_1::MemoryManager*) 
> library.o
> xercesc_3_1::XMLUni::fgDOMWRTFormatPrettyPrint library.o
> [Hint: static member xercesc_3_1::XMLUni::fgDOMWRTFormatPrettyPrint 
> must be defined in the program]
>
> xercesc_3_1::XMLUni::fgDOMWRTXercesPrettyPrint library.o
> [Hint: static member xercesc_3_1::XMLUni::fgDOMWRTXercesPrettyPrint 
> must be defined in the program]
>
> xercesc_3_1::XMLUni::fgXercesHandleMultipleImports library.o
> [Hint: static member 
> xercesc_3_1::XMLUni::fgXercesHandleMultipleImports must be defined in 
> the program]
>
> typeinfo for xercesc_3_1::InputSource    library.o
> [Hint: static member typeinfo for xercesc_3_1::InputSource must be 
> defined in the program]
>
> xercesc_3_1::InputSource::setPublicId(const unsigned short*) library.o
> xercesc_3_1::XMLUni::fgXercesLoadSchema library.o
> [Hint: static member xercesc_3_1::XMLUni::fgXercesLoadSchema must be 
> defined in the program]
>
> xercesc_3_1::XMLPlatformUtils::Initialize(const char*,const 
> char*,xercesc_3_1::PanicHandler*,xercesc_3_1::MemoryManager*) library.o
> xercesc_3_1::XMLUni::fgXercesSchemaFullChecking library.o
> [Hint: static member xercesc_3_1::XMLUni::fgXercesSchemaFullChecking 
> must be defined in the program]
>
> xercesc_3_1::InputSource::InputSource(const unsigned 
> short*,xercesc_3_1::MemoryManager*) library.o
> xercesc_3_1::Wrapper4InputSource::Wrapper4InputSource(xercesc_3_1::InputSource*,bool,xercesc_3_1::MemoryManager*) 
> library.o
> xercesc_3_1::XMLUni::fgDOMWRTDiscardDefaultContent library.o
> [Hint: static member 
> xercesc_3_1::XMLUni::fgDOMWRTDiscardDefaultContent must be defined in 
> the program]
>
> xercesc_3_1::SchemaSymbols::fgURI_XSI library.o
> [Hint: static member xercesc_3_1::SchemaSymbols::fgURI_XSI must be 
> defined in the program]
>
> xercesc_3_1::XMemory::operator new(unsigned)        library.o
> xercesc_3_1::XMLUni::fgXercesSchemaExternalNoNameSpaceSchemaLocation 
> library.o
> [Hint: static member 
> xercesc_3_1::XMLUni::fgXercesSchemaExternalNoNameSpaceSchemaLocation 
> must be defined in the program]
>
> xercesc_3_1::XMLUni::fgDOMComments library.o
> [Hint: static member xercesc_3_1::XMLUni::fgDOMComments must be 
> defined in the program]
>
> xercesc_3_1::XMLUni::fgXercescDefaultLocale library.o
> [Hint: static member xercesc_3_1::XMLUni::fgXercescDefaultLocale must 
> be defined in the program]
>
> xercesc_3_1::XMLUni::fgDOMValidate library.o
> [Hint: static member xercesc_3_1::XMLUni::fgDOMValidate must be 
> defined in the program]
>
> xercesc_3_1::XMLUni::fgXercesSchemaExternalSchemaLocation library.o
> [Hint: static member 
> xercesc_3_1::XMLUni::fgXercesSchemaExternalSchemaLocation must be 
> defined in the program]
>
> xercesc_3_1::Wrapper4InputSource::~Wrapper4InputSource() library.o
> xercesc_3_1::XMLUni::fgDOMNamespaces library.o
> [Hint: static member xercesc_3_1::XMLUni::fgDOMNamespaces must be 
> defined in the program]
>
> xercesc_3_1::SchemaSymbols::fgXSI_NONAMESPACESCHEMALOCACTION library.o
> [Hint: static member 
> xercesc_3_1::SchemaSymbols::fgXSI_NONAMESPACESCHEMALOCACTION must be 
> defined in the program]
>
> xercesc_3_1::DOMImplementationRegistry::getDOMImplementation(const 
> unsigned short*) library.o
> xercesc_3_1::XMLUni::fgDOMErrorHandler library.o
> [Hint: static member xercesc_3_1::XMLUni::fgDOMErrorHandler must be 
> defined in the program]
>
> xercesc_3_1::InputSource::setEncoding(const unsigned short*) library.o
> xercesc_3_1::XMLPlatformUtils::fgMemoryManager library.o
> [Hint: static member xercesc_3_1::XMLPlatformUtils::fgMemoryManager 
> must be defined in the program]
>
> xercesc_3_1::XMLPlatformUtils::Terminate() library.o
> xercesc_3_1::XMLUni::fgXercesSchema library.o
> [Hint: static member xercesc_3_1::XMLUni::fgXercesSchema must be 
> defined in the program]
>
> xercesc_3_1::XMLUni::fgDOMDatatypeNormalization library.o
> [Hint: static member xercesc_3_1::XMLUni::fgDOMDatatypeNormalization 
> must be defined in the program]
>
> ld: fatal: symbol referencing errors. No output written to driver
linking problem.  Any suggestions?

Bernie

On 4/6/16 8:47 AM, Boris Kolpackov wrote:
> Hi Bernie,
>
> Wow, Sun CC in the C++11 mode. Never thought I would live to see the
> day ;-) Can you try the attached patch (on libxsd) and see if it helps?
>
> Thanks,
> Boris


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 7270 bytes
Desc: S/MIME Cryptographic Signature
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20160406/c1c7971e/smime-0001.bin


More information about the xsd-users mailing list