You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xerces.apache.org by ro...@us.ibm.com on 2000/01/20 19:25:03 UTC

Re: Xerces-C-src_1_0_1 win32 build error



Could you find out what header you are getting the prototype for this
function from? The Win32 SDK clearly defines this function as taking void*
type parameters. Something wierd is certainly going on.

----------------------------------------
Dean Roddey
Software Weenie
IBM Center for Java Technology - Silicon Valley
roddey@us.ibm.com



"Abhijit Savarkar" <ab...@geometricsoftware.com> on 01/19/2000 11:54:39
PM

Please respond to xerces-dev@xml.apache.org

To:   <xe...@xml.apache.org>
cc:
Subject:  Xerces-C-src_1_0_1 win32 build error



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
--------------------------------
abhijits@geometricsoftware.com
--------------------------------





Re: Xerces-C-src_1_0_1 win32 build error

Posted by Eric Ulevik <ea...@fast.fujitsu.com.au>.
The file 'winbase.h' in the January 2000 Platform SDK is the place.

It's usually a good idea to install the latest Platform SDK. They have
updates and corrections to the SDK subset included with Visual C++.

Regards,

Eric Ulevik

----- Original Message -----
From: <ro...@us.ibm.com>
To: <xe...@xml.apache.org>
Sent: Friday, 21 January 2000 5:25 am
Subject: Re: Xerces-C-src_1_0_1 win32 build error


>
>
>
> Could you find out what header you are getting the prototype for this
> function from? The Win32 SDK clearly defines this function as taking void*
> type parameters. Something wierd is certainly going on.
>
> ----------------------------------------
> Dean Roddey
> Software Weenie
> IBM Center for Java Technology - Silicon Valley
> roddey@us.ibm.com
>
>
>
> "Abhijit Savarkar" <ab...@geometricsoftware.com> on 01/19/2000 11:54:39
> PM
>
> Please respond to xerces-dev@xml.apache.org
>
> To:   <xe...@xml.apache.org>
> cc:
> Subject:  Xerces-C-src_1_0_1 win32 build error
>
>
>
> 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
> --------------------------------
> abhijits@geometricsoftware.com
> --------------------------------
>
>
>
>