Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    warning C4005 in SDK

    SDK Help
    0
    3
    348
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

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

        Hi Klaus,

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


        [URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          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)

          1 Reply Last reply Reply Quote 0
          • First post
            Last post