Problem compiling with VS2008

Help
2009-08-28
2013-04-23
  • James Whitwell
    James Whitwell
    2009-08-28

    Hi,

    We're using VS 2008 with SP1.  Grabbed FRAMEWAVE_1.3.1_SRC.zip from the website, but am having problems compiling, both via the .sln file, and scons from the command line.  The error looks like this:

    Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for 80x86
    Copyright (C) Microsoft Corporation.  All rights reserved.

    colorModelConversion_RGB_YCBCR.cpp
    e:\build\framewave_1.3.1_src\framewave\sdk\sseplus\include\arithmetic\../emulat
    on/SSEPlus_emulation_SSE2.h(1015) : NOTE SSEPlus SSE2 rounding functions overfl
    w if input outside 32 bit integer range
    e:\build\framewave_1.3.1_src\framewave\sdk\sseplus\include\arithmetic\../emulat
    on/SSEPlus_emulation_SSE2.h(1050) : NOTE SSEPlus SSE2 rounding functions overfl
    w if input outside 32 bit integer range
    C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\memory(996) : error C23
    3: '_InterlockedCompareExchange' : redefinition; different type modifiers
            C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\intrin.h(204) :
    see declaration of '_InterlockedCompareExchange'
    C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\memory(1056) : error C2
    46: '==' : no conversion from 'long' to 'long (__stdcall *)(volatile long *,lon
    ,long)'
            Conversion from integral type to pointer type requires reinterpret_cast
    C-style cast or function-style cast
    C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\memory(1056) : error C2
    40: '==' : 'long (__stdcall *)(volatile long *,long,long)' differs in levels of
    indirection from 'long'
    C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\memory(1056) : error C3
    61: '_InterlockedCompareExchange': identifier not found
    scons: *** [build\tmp\fwImage_debug_static_32\obj\_sse2_colorModelConversion_RG
    _YCBCR.obj] Error 2
    scons: building terminated because of errors.

    E:\build\FRAMEWAVE_1.3.1_SRC\Framewave>

    Any help appreciated.

    Cheers,
    James.