Wang, Tony wrote:
Hi, I'm new to xerces-c, I'm able to build the lib, dll, and sample
applications with the coming in solution/project files with Visual
Studio 2005.
However, when I try to use SAXparser in my application, I got compiler
errors as following. We use Visual Studio 2005 C++ compiler.
Thanks advance for your helps.
Tony
cl -I. -I.././IDL -I.././Infrastructure -I.././DB -I.././model
-Ic:\dev\iona\include -Ic:\dev\versant\7_0_1\h -Ic:\dev\SourcePro
-I.././thirdparty/zlib
/include -IC:\dev\xerces_2_8_0\xerces-c-src_2_8_0/src -nologo -W3 -GR
-EHsc -vmg
-Od -FD -EHsc -MD -Zi -Zm200 -DWIN32 -DCONSOLE -DPLATFORM_WIN32
-D_VC80_UPGRADE
=0x0710 -D_WINDOWS -DXML_USE_WIN32_TRANSCODER -DXML_USE_WIN32_MSGLOADER
-DXML_US
E_NETACCESSOR_WINSOCK -D_CRT_SECURE_NO_DEPRECATE -D_CRTDBG_MAP_ALLOC
-DWIN32_LEA
N_AND_MEAN -DVERSANT_ANSI -D_CRT_SECURE_NO_DEPRECATE -D_AFXDLL -DNDEBUG
-DIT_U
SE_STD_IOSTREAM -DORBIX_DLL -D_RWCONFIG=12d -D_CONSOLE
-DN_VERSANT_SUPPORT /Y
u"StdAfx.h" -c NCodianBridgeServer.cpp
NCodianBridgeServer.cpp
C:\dev\xerces_2_8_0\xerces-c-src_2_8_0\src\xercesc/util/regx/Op.hpp(50)
: error
C2143: syntax error : missing '}' before 'constant'
Perhaps your code or some other code you're including defines a macro
that is the same as one of the enums in the Op class.
You can try adding the following line to the Op.hpp, right before the
start of the Op class:
#undef O_STRING
#undef O_CLOSURE
Dave