warning C4005 in SDK



  • On 05/04/2016 at 04:44, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   15-17 
    Platform:   Windows  ;   
    Language(s) :     C++  ;

    ---------
    Hi,

    when compiling any R15 project including the SDK with VS2013 I get warning C4005 in allmost all files:

    1>c:\program files\maxon\cinema 4d r15\resource\_api\c4d_misc\utilities\compilerdetection.h(61) : warning C4005: '_HAS_DECLTYPE': macro redefinition (..\_api\c4d_basebitmap.cpp)
    1>          c:\program files (x86)\microsoft visual studio 12.0\vc\include\yvals.h(15) : see previous definition of '_HAS_DECLTYPE'

    Just these warnings. It builds the project fine and I can't encounter any problems when running.

    Is it safe to just switch off the redefinition in the compilerdetection.h file using #ifndef ?

    EDIT: Setting the warning level from 4 to 3 has no effect.



  • On 06/04/2016 at 09:11, xxxxxxxx wrote:

    Hi Klaus,

    I'm sorry, we only support the IDE versions stated for every SDK.
    And we also can't recommend changes to the Cinema framework sources.
    With such changes you are on your own. Sorry!



  • On 14/04/2016 at 00:25, xxxxxxxx wrote:

    As for the warning: Just add them as ignore in project settings. This happens when using a newer compiler as the one that the SDK is built for. (VS2010(v100) > VS2013(v120) platform tools, for example)


Log in to reply