← Prev in month ← Prev in thread
Next in thread → Next in month →

Xerces-C++ and std::string

From
Corey A. Spitzer <>
To
Xml-Dev <>
Date
2002-06-19T21:20:24Z
ID
<000701c217d7$22af0c60$>
Thread
Xerces-C++ and std::string
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";
← Prev in month ← Prev in thread
Next in thread → Next in month →