OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Xerces-C++ and std::string

[ Lists Home | Date Index | Thread Index ]

Could anyone help me with this problem?

I had no errors until I added:

#include <string>
using std::string

Now, I get these:

c:\documents and
settings\cspitzer.cisco_eng\desktop\xerces\xerces-c1_7_0-win32\include\xerce
sc\util\xercesdefs.hpp(190) : error C2628: 'std::string' followed by 'char'
is illegal (did you forget a ';'?)
c:\documents and
settings\cspitzer.cisco_eng\desktop\xerces\xerces-c1_7_0-win32\include\xerce
sc\util\xercesdefs.hpp(190) : error C2143: syntax error : missing ';' before
'*'
c:\documents and
settings\cspitzer.cisco_eng\desktop\xerces\xerces-c1_7_0-win32\include\xerce
sc\util\xercesdefs.hpp(190) : error C2501: 'gXercesVersionStr' : missing
storage-class or type specifiers
c:\documents and
settings\cspitzer.cisco_eng\desktop\xerces\xerces-c1_7_0-win32\include\xerce
sc\util\xercesdefs.hpp(190) : error C2440: 'initializing' : cannot convert
from 'char [4]' to 'int *const '
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
Error executing cl.exe.

This is what's on line 190:

const char* const    gXercesVersionStr = "1_7";


  • References:
    • SAX Question
      • From: "Bullard, Claude L (Len)" <clbullar@ingr.com>



 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS