Hello,

I am new to apache XML parser and have downloaded source code from xml
apache site

When I try to build the same on my Win NT4.0 VC6.0 it gives following error

xerces-c-src_1_0_1\src\util\platforms\win32\win32platformutils.cpp(630) :
error C2664: 'InterlockedCompareExchange' : cannot convert parameter 1 from
'void ** ' to 'long *'

The code segment it refers to is

<function name>

//  Miscellaneous synchronization methods
// ---------------------------------------------------
void*
XMLPlatformUtils::compareAndSwap(       void**      toFill
                                , const void* const newValue
                                , const void* const toCompare)

<affected lines>

    //
    //  Note we have to cast off the constness of some of these because
    //  the system APIs are not C++ aware in all cases.
    //
    return (void*)::InterlockedCompareExchange
    (
        toFill
        , (void*)newValue
        , (void*)toCompare
   )


Any pointers on how to get it build correctly will be of great help.

Thank you,
Abhijit
--------------------------------
[EMAIL PROTECTED]
--------------------------------

Reply via email to